1
0
Fork 0
forked from len0rd/rockbox

sAMSa: Turn the backlight off before rebooting to avoid irritating lcd flash.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21692 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-07-06 14:46:19 +00:00
parent 25fdcf3c14
commit cabd45086a

View file

@ -32,6 +32,7 @@
#ifndef BOOTLOADER
#include "mmu-arm.h"
#endif
#include "backlight-target.h"
#define default_interrupt(name) \
extern __attribute__((weak,alias("UIRQ"))) void name (void)
@ -305,6 +306,7 @@ void system_init(void)
void system_reboot(void)
{
_backlight_off();
/* use watchdog to reset */
CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE);
WDT_LOAD = 1; /* set counter to 1 */