Added clear to power reduction registers, but still no timer interrupt under simulation.
This commit is contained in:
@@ -46,6 +46,8 @@ void timer_initialize(void)
|
||||
TCNT1 = TIMER_1_COUNT;
|
||||
/* Enable the overflow interrupt */
|
||||
BIT_SET(TIMSK1,TOIE1);
|
||||
/* Clear the Power Reduction Timer/Counter0 */
|
||||
BIT_CLEAR(PRR,PRTIM1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user