Typo.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 2 Dec 2008 15:13:16 +0000 (15:13 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 2 Dec 2008 15:13:16 +0000 (15:13 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1958 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/avr/drv/timer_avr.c

index b224a902016e6775c4b8557d315aaab41834394c..291f205d9115b27ad72e9152ab3de713c725cb46 100644 (file)
@@ -79,8 +79,8 @@
        #define REG_TIMSK0 TIMSK
        #define REG_TIMSK2 TIMSK
 
-       #define REG_TCCR2A TCCR0
-       #define REG_TCCR2B TCCR0
+       #define REG_TCCR0A TCCR0
+       #define REG_TCCR0B TCCR0
 
        #define REG_TCCR2A TCCR2
        #define REG_TCCR2B TCCR2
 
                /* Enable timer interrupts: Timer/Counter2 Output Compare (OCIE2) */
                REG_TIMSK0 &= ~BV(TOIE0);
-               REG_TIMSK0 |= BV(OCIE0A);
+               REG_TIMSK0 |= BV(BIT_OCIE0A);
 
                IRQ_RESTORE(flags);
        }