summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-09-20 23:21:59 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-09-20 23:21:59 +0000
commite63e62b2a1d849b9a965e989b3ce18576c0ac521 (patch)
tree4a992431717e4ba4218f1da6feb0e9be01165215 /firmware/usb.c
parent9acc450e716b0c2accfa3922aba91cb707d4ae14 (diff)
downloadrockbox-e63e62b2a1d849b9a965e989b3ce18576c0ac521.tar.gz
rockbox-e63e62b2a1d849b9a965e989b3ce18576c0ac521.zip
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
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 0be6c4011e..ce9d1ce69f 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -80,6 +80,9 @@ void screen_dump(void); /* Nasty again. Defined in apps/ too */
80#elif CONFIG_KEYPAD == GIGABEAT_PAD 80#elif CONFIG_KEYPAD == GIGABEAT_PAD
81#define USBPOWER_BUTTON BUTTON_MENU 81#define USBPOWER_BUTTON BUTTON_MENU
82#define USBPOWER_BTN_IGNORE BUTTON_POWER 82#define USBPOWER_BTN_IGNORE BUTTON_POWER
83#elif CONFIG_KEYPAD == IRIVER_H10_PAD
84#define USBPOWER_BUTTON BUTTON_NONE
85#define USBPOWER_BTN_IGNORE BUTTON_POWER
83#endif 86#endif
84#endif /* HAVE_USB_POWER */ 87#endif /* HAVE_USB_POWER */
85 88