1
0
Fork 0
forked from len0rd/rockbox

Added restart option to system exception screen (press ON)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3768 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2003-06-29 15:09:01 +00:00
parent 0dcc4a6fb9
commit 9bcbe3fd72

View file

@ -23,6 +23,7 @@
#include "font.h"
#include "led.h"
#include "system.h"
#include "rolo.h"
#define default_interrupt(name,number) \
extern __attribute__((weak,alias("UIE" #number))) void name (void); void UIE##number (void)
@ -347,6 +348,15 @@ void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */
state = state?false:true;
for (i = 0; i < 240000; ++i);
/* try to restart firmware if ON is pressed */
#ifdef HAVE_LCD_CHARCELLS
if (!(PADR & 0x20))
rolo_load("/archos.mod");
#else
if (!(PBDR & PBDR_BTN_ON))
rolo_load("/ajbrec.ajz");
#endif
}
}