mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-06 21:42:47 +00:00
@@ -196,7 +196,7 @@ extern volatile irparams_t irparams;
|
|||||||
#define TIMER_ENABLE_PWM (TCCR2A |= _BV(COM2B1))
|
#define TIMER_ENABLE_PWM (TCCR2A |= _BV(COM2B1))
|
||||||
#define TIMER_DISABLE_PWM (TCCR2A &= ~(_BV(COM2B1)))
|
#define TIMER_DISABLE_PWM (TCCR2A &= ~(_BV(COM2B1)))
|
||||||
#define TIMER_ENABLE_INTR (TIMSK2 = _BV(OCIE2A))
|
#define TIMER_ENABLE_INTR (TIMSK2 = _BV(OCIE2A))
|
||||||
#define TIMER_DISABLE_INTR (TIMSK2 - 0)
|
#define TIMER_DISABLE_INTR (TIMSK2 = 0)
|
||||||
#define TIMER_INTR_NAME TIMER2_COMPA_vect
|
#define TIMER_INTR_NAME TIMER2_COMPA_vect
|
||||||
#define TIMER_CONFIG_KHZ(val) ({ \
|
#define TIMER_CONFIG_KHZ(val) ({ \
|
||||||
const uint8_t pwmval = SYSCLOCK / 2000 / (val); \
|
const uint8_t pwmval = SYSCLOCK / 2000 / (val); \
|
||||||
|
|||||||
Reference in New Issue
Block a user