Explorar o código

Fix timer_restore for monochrome models
Only tested in the emulator due to lack of hardware

Dan ELKOUBY %!s(int64=11) %!d(string=hai) anos
pai
achega
243fdf3aa3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      timers.c

+ 2 - 0
timers.c

@@ -47,9 +47,11 @@ void timer_restore(unsigned timer)
 	{
 		volatile unsigned *timer_ctl = (unsigned *) (TIMER + 0x08 + 0x0C * timer);
 		volatile unsigned *timer_divider = (unsigned *) (TIMER + 0x04 + 0x0C * timer);
+		volatile unsigned *timer_value = (unsigned *) (TIMER + 0x0C * timer);
 
 		*timer_ctl = timer_ctl_bkp[timer];
 		*timer_divider = timer_load_bkp[timer];
+		*timer_value = 32;
 	}
 }