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:
parent
25fdcf3c14
commit
cabd45086a
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
#include "mmu-arm.h"
|
#include "mmu-arm.h"
|
||||||
#endif
|
#endif
|
||||||
|
#include "backlight-target.h"
|
||||||
|
|
||||||
#define default_interrupt(name) \
|
#define default_interrupt(name) \
|
||||||
extern __attribute__((weak,alias("UIRQ"))) void name (void)
|
extern __attribute__((weak,alias("UIRQ"))) void name (void)
|
||||||
|
@ -305,6 +306,7 @@ void system_init(void)
|
||||||
|
|
||||||
void system_reboot(void)
|
void system_reboot(void)
|
||||||
{
|
{
|
||||||
|
_backlight_off();
|
||||||
/* use watchdog to reset */
|
/* use watchdog to reset */
|
||||||
CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE);
|
CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE);
|
||||||
WDT_LOAD = 1; /* set counter to 1 */
|
WDT_LOAD = 1; /* set counter to 1 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue