1
0
Fork 0
forked from len0rd/rockbox

Detect charger connected on H10. No need to sleep(HZ) when powering off.

More sensible USB support for H10: plugging in puts it into USB charging mode and leaves Rockbox usable, holding 'O' while pluggin in the USB cable will reboot the H10 (continuing to hold 'O' starts it up in UMS mode), holding any other button brings up the USB screen as previously.
Implement system_reboot() for all PP5020 devices.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11015 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2006-09-20 23:21:59 +00:00
parent 9acc450e71
commit e63e62b2a1
7 changed files with 22 additions and 71 deletions

View file

@ -1316,6 +1316,8 @@ void system_init(void)
void system_reboot(void)
{
/* Reboot */
DEV_RS |= DEV_SYSTEM;
}
int system_memory_guard(int newmode)