From: asterix Date: Fri, 11 Jun 2010 10:53:41 +0000 (+0000) Subject: Fix timer selection for some avr cpus. X-Git-Tag: 2.5.0~1 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2a12220079cb2c1013f26e32b9a7731323df83e5;p=bertos.git Fix timer selection for some avr cpus. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3916 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/drv/timer_avr.c b/bertos/cpu/avr/drv/timer_avr.c index 54b4f0b7..70876c01 100644 --- a/bertos/cpu/avr/drv/timer_avr.c +++ b/bertos/cpu/avr/drv/timer_avr.c @@ -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 @@ -215,6 +216,10 @@ #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;