Skip to content

Commit e22a691

Browse files
committed
updating timer interrupt name for Attiny84
1 parent a6bf23d commit e22a691

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

IRremoteInt.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,13 @@ extern volatile irparams_t irparams;
274274
#define TIMER_ENABLE_INTR (TIMSK1 = _BV(OCIE1A))
275275
#define TIMER_DISABLE_INTR (TIMSK1 = 0)
276276
#endif
277-
#define TIMER_INTR_NAME TIMER1_COMPA_vect
277+
278+
#if defined(__AVR_ATtinyX4__)
279+
#define TIMER_INTR_NAME TIM1_COMPA_vect
280+
#else
281+
#define TIMER_INTR_NAME TIMER1_COMPA_vect
282+
#endif
283+
278284
#define TIMER_CONFIG_KHZ(val) ({ \
279285
const uint16_t pwmval = SYSCLOCK / 2000 / (val); \
280286
TCCR1A = _BV(WGM11); \

0 commit comments

Comments
 (0)