forked from len0rd/rockbox
Ingenic Jz4740 targets: turn backlight on when an exception occurs and EXTENDED_EXCEPTION_DESC is defined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22052 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4ce26ff328
commit
682a991f0f
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
|
||||
#define EXTENDED_EXCEPTION_DESC 0
|
||||
#if EXTENDED_EXCEPTION_DESC
|
||||
#include "backlight-target.h"
|
||||
#include "font.h"
|
||||
#include "lcd.h"
|
||||
#include "sprintf.h"
|
||||
|
@ -264,6 +265,7 @@ void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc)
|
|||
lcd_set_backdrop(NULL);
|
||||
lcd_clear_display();
|
||||
lcd_setfont(FONT_SYSFIXED);
|
||||
_backlight_on();
|
||||
|
||||
snprintf(buffer, sizeof(buffer), "0x%08x at 0x%08x", read_c0_badvaddr(), epc);
|
||||
lcd_puts(0, 0, parse_exception(cause));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue