Remove unneeded instruction in AVR timer.
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 14 Apr 2011 10:13:55 +0000 (10:13 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 14 Apr 2011 10:13:55 +0000 (10:13 +0000)
The ASSR register is used for asynchronous counter timer2. Checked
for ATmega8/16, ATmega48/168/328, and ATmega1280.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4860 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/avr/drv/timer_mega.c

index d6e88d21718e575ecb39db3ec8280e1fb644fd66..8b76045462a717c3c63866e0ed25025b674057be 100644 (file)
                REG_TIFR0 = BV(BIT_OCF0A) | BV(TOV0);
 
                /* Setup Timer/Counter interrupt */
-               ASSR = 0x00;                  /* Internal system clock */
-
                REG_TCCR0A = 0; // TCCR2 reg could be separate or a unique register with both A & B values, this is needed to
                REG_TCCR0B = 0;