summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index 60be7ddac0..e973354b8b 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -32,6 +32,7 @@
32#ifndef BOOTLOADER 32#ifndef BOOTLOADER
33#include "mmu-arm.h" 33#include "mmu-arm.h"
34#endif 34#endif
35#include "backlight-target.h"
35 36
36#define default_interrupt(name) \ 37#define default_interrupt(name) \
37 extern __attribute__((weak,alias("UIRQ"))) void name (void) 38 extern __attribute__((weak,alias("UIRQ"))) void name (void)
@@ -305,6 +306,7 @@ void system_init(void)
305 306
306void system_reboot(void) 307void system_reboot(void)
307{ 308{
309 _backlight_off();
308 /* use watchdog to reset */ 310 /* use watchdog to reset */
309 CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE); 311 CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE);
310 WDT_LOAD = 1; /* set counter to 1 */ 312 WDT_LOAD = 1; /* set counter to 1 */