arch: add timer1_disable helper for ATmega48P Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
1 files changed, 5 insertions(+), 0 deletions(-) M arch/atmega48p_timer1.h
M arch/atmega48p_timer1.h +5 -0
@@ 125,6 125,11 @@ enum timer1_compare_mode { TIMER1_COMPARE_MODE_SET = 3, }; +static inline void timer1_disable(void) +{ + mmregs->tccr1b = REG_TCCR1B_CS_OFF; +} + static inline void timer1_init(enum timer1_mode mode, enum timer1_clock clock, enum timer1_compare_mode compa,