mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-04 04:22:50 +00:00
updating timer interrupt name for Attiny84
This commit is contained in:
@@ -274,7 +274,13 @@ extern volatile irparams_t irparams;
|
|||||||
#define TIMER_ENABLE_INTR (TIMSK1 = _BV(OCIE1A))
|
#define TIMER_ENABLE_INTR (TIMSK1 = _BV(OCIE1A))
|
||||||
#define TIMER_DISABLE_INTR (TIMSK1 = 0)
|
#define TIMER_DISABLE_INTR (TIMSK1 = 0)
|
||||||
#endif
|
#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) ({ \
|
#define TIMER_CONFIG_KHZ(val) ({ \
|
||||||
const uint16_t pwmval = SYSCLOCK / 2000 / (val); \
|
const uint16_t pwmval = SYSCLOCK / 2000 / (val); \
|
||||||
TCCR1A = _BV(WGM11); \
|
TCCR1A = _BV(WGM11); \
|
||||||
|
|||||||
Reference in New Issue
Block a user