Added clear to power reduction registers, but still no timer interrupt under simulation.

This commit is contained in:
skarg
2007-08-15 18:27:43 +00:00
parent 1b364d6df1
commit 7e1b95d18f
4 changed files with 32 additions and 11 deletions
+2
View File
@@ -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);
}