Fix timer selection for some avr cpus.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 11 Jun 2010 10:53:41 +0000 (10:53 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 11 Jun 2010 10:53:41 +0000 (10:53 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3916 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/avr/drv/timer_avr.c

index 54b4f0b728f91d9e08962fb84dfc8e1f585c826d..70876c010b2a664c012618774e408a4120d52286 100644 (file)
@@ -82,6 +82,7 @@
        #define REG_TIFR0 TIFR
        #define REG_TIFR1 TIFR
        #define REG_TIFR2 TIFR
+       #define REG_TIFR3 TIFR
 
        #define REG_TIMSK0 TIMSK
        #define REG_TIMSK1 TIMSK
 
 #elif (CONFIG_TIMER == TIMER_ON_OVERFLOW3)
 
+       #if CPU_AVR_ATMEGA168 || CPU_AVR_ATMEGA328P || CPU_AVR_ATMEGA32
+               #error For select target there is not TIMER_ON_OVERFLOW3, please select an other one.
+       #endif
+
        void timer_hw_init(void)
        {
                cpu_flags_t flags;