forked from len0rd/rockbox
(1) Set cpu to 11 Mhz when we "crash" to prevent overheating.
(2) Bind the ON button to reboot when we are in the crashed state. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7044 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ffd207f4b0
commit
3d25240f41
1 changed files with 7 additions and 0 deletions
|
@ -440,9 +440,16 @@ void UIE (void) /* Unexpected Interrupt or Exception */
|
||||||
snprintf(str,sizeof(str),"at %08x",pc);
|
snprintf(str,sizeof(str),"at %08x",pc);
|
||||||
lcd_puts(0,1,str);
|
lcd_puts(0,1,str);
|
||||||
lcd_update();
|
lcd_update();
|
||||||
|
|
||||||
|
/* set cpu frequency to 11mhz (to prevent overheating) */
|
||||||
|
DCR = (DCR & ~0x01ff) | 1;
|
||||||
|
PLLCR = 0x00000000;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
/* check for the ON button (and !hold) */
|
||||||
|
if ((GPIO1_READ & 0x22) == 0)
|
||||||
|
system_reboot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue