summaryrefslogtreecommitdiff
path: root/firmware/panic.c
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2009-07-25 18:23:06 +0000
committerRob Purchase <shotofadds@rockbox.org>2009-07-25 18:23:06 +0000
commitccb52bd72ca5caf9c78d7895dcb11bf489308c4d (patch)
tree3b89f989e7130dc849cc8e7647da1d1d2b31df77 /firmware/panic.c
parentfe1568a11c046c32b1ae7a3857b2a4c225492c56 (diff)
downloadrockbox-ccb52bd72ca5caf9c78d7895dcb11bf489308c4d.tar.gz
rockbox-ccb52bd72ca5caf9c78d7895dcb11bf489308c4d.zip
Make the panic and UIE handlers turn on the backlight (needed for various colour LCDs that are unreadable without it). UIE is only changed on ARM for now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22034 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index 0223dc1494..66b9e4d7eb 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -30,6 +30,9 @@
30#include "led.h" 30#include "led.h"
31#include "power.h" 31#include "power.h"
32#include "system.h" 32#include "system.h"
33#ifdef HAVE_BACKLIGHT
34#include "backlight-target.h"
35#endif
33 36
34static char panic_buf[128]; 37static char panic_buf[128];
35#define LINECHARS (LCD_WIDTH/SYSFONT_WIDTH) 38#define LINECHARS (LCD_WIDTH/SYSFONT_WIDTH)
@@ -75,9 +78,14 @@ void panicf( const char *fmt, ...)
75#else 78#else
76 /* no LCD */ 79 /* no LCD */
77#endif 80#endif
81
78 lcd_update(); 82 lcd_update();
79 DEBUGF("%s", panic_buf); 83 DEBUGF("%s", panic_buf);
80 84
85#ifdef HAVE_BACKLIGHT
86 _backlight_on();
87#endif
88
81 set_cpu_frequency(0); 89 set_cpu_frequency(0);
82 90
83#ifdef HAVE_ATA_POWER_OFF 91#ifdef HAVE_ATA_POWER_OFF