From e22a69116415232a03c18d7cd517b6da0e2bd6ac Mon Sep 17 00:00:00 2001 From: Joshua Noble Date: Tue, 23 Jul 2013 16:50:20 -0700 Subject: [PATCH] updating timer interrupt name for Attiny84 --- IRremoteInt.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/IRremoteInt.h b/IRremoteInt.h index 719fca8..3ff620b 100644 --- a/IRremoteInt.h +++ b/IRremoteInt.h @@ -274,7 +274,13 @@ extern volatile irparams_t irparams; #define TIMER_ENABLE_INTR (TIMSK1 = _BV(OCIE1A)) #define TIMER_DISABLE_INTR (TIMSK1 = 0) #endif -#define TIMER_INTR_NAME TIMER1_COMPA_vect + +#if defined(__AVR_ATtinyX4__) + #define TIMER_INTR_NAME TIM1_COMPA_vect +#else + #define TIMER_INTR_NAME TIMER1_COMPA_vect +#endif + #define TIMER_CONFIG_KHZ(val) ({ \ const uint16_t pwmval = SYSCLOCK / 2000 / (val); \ TCCR1A = _BV(WGM11); \