X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Ftimer_avr.h;fp=drv%2Ftimer_avr.h;h=252e772fa59a64bcc98db4adbc14e816c0275457;hb=b821a72d490197c1d8b4e4ea51cbfcbe5e9a5fa5;hp=7442fdcb152e335d3376a64a54fe1f37e65802aa;hpb=714f998dc2201fa5b24792891091c5b9851f83be;p=bertos.git diff --git a/drv/timer_avr.h b/drv/timer_avr.h index 7442fdcb..252e772f 100755 --- a/drv/timer_avr.h +++ b/drv/timer_avr.h @@ -16,6 +16,9 @@ /*#* *#* $Log$ + *#* Revision 1.29 2007/03/21 11:01:36 batt + *#* Add missing support for ATMega1281. + *#* *#* Revision 1.28 2006/07/19 12:56:26 bernie *#* Convert to new Doxygen style. *#* @@ -97,7 +100,11 @@ #define TIMER_PRESCALER 64 #define TIMER_HW_BITS 8 - #define DEFINE_TIMER_ISR SIGNAL(SIG_OUTPUT_COMPARE2) + #if CPU_AVR_ATMEGA1281 + #define DEFINE_TIMER_ISR SIGNAL(SIG_OUTPUT_COMPARE2A) + #else + #define DEFINE_TIMER_ISR SIGNAL(SIG_OUTPUT_COMPARE2) + #endif #define TIMER_TICKS_PER_SEC 1000 /** Value for OCR register in output-compare based timers. */ #define TIMER_HW_CNT OCR_DIVISOR