From e63e62b2a1d849b9a965e989b3ce18576c0ac521 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Wed, 20 Sep 2006 23:21:59 +0000 Subject: 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 --- firmware/usb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/usb.c') 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 */ #elif CONFIG_KEYPAD == GIGABEAT_PAD #define USBPOWER_BUTTON BUTTON_MENU #define USBPOWER_BTN_IGNORE BUTTON_POWER +#elif CONFIG_KEYPAD == IRIVER_H10_PAD +#define USBPOWER_BUTTON BUTTON_NONE +#define USBPOWER_BTN_IGNORE BUTTON_POWER #endif #endif /* HAVE_USB_POWER */ -- cgit v1.2.3