mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-07 21:52:48 +00:00
i think that's the correct way.
This commit is contained in:
@@ -175,7 +175,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