From e12527b8950f8f5ed4f7bb638bcf78abf3fc818c Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 6 Aug 2017 19:26:48 -0400 Subject: avr: Move prescaler and sleep initialization from timer.c to main.c Signed-off-by: Kevin O'Connor --- src/avr/timer.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/avr/timer.c') diff --git a/src/avr/timer.c b/src/avr/timer.c index d9397187..e32a0b42 100644 --- a/src/avr/timer.c +++ b/src/avr/timer.c @@ -91,14 +91,6 @@ DECL_SHUTDOWN(timer_reset); void timer_init(void) { - if (CONFIG_AVR_CLKPR != -1 && (uint8_t)CONFIG_AVR_CLKPR != CLKPR) { - // Program the clock prescaler - irqstatus_t flag = irq_save(); - CLKPR = 0x80; - CLKPR = CONFIG_AVR_CLKPR; - irq_restore(flag); - } - // no outputs TCCR1A = 0; // Normal Mode @@ -110,9 +102,6 @@ timer_init(void) // enable interrupt TIMSK1 = 1<