mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Enable USB charging mode on H300, hold Rec when inserting the USB connector to not enter USB mode. This may not always work, since we don't yet know how to control the charging chip correctly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8460 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b579c631b9
commit
ea8bbe3df6
2 changed files with 7 additions and 1 deletions
|
@ -110,4 +110,7 @@
|
|||
|
||||
#define HAVE_BACKLIGHT_BRIGHTNESS
|
||||
|
||||
/* define this if the unit can be powered or charged via USB */
|
||||
#define HAVE_USB_POWER
|
||||
|
||||
#endif
|
||||
|
|
|
@ -71,6 +71,9 @@ void screen_dump(void); /* Nasty again. Defined in apps/ too */
|
|||
#elif CONFIG_KEYPAD == IPOD_4G_PAD
|
||||
#define USBPOWER_BUTTON BUTTON_MENU
|
||||
#define USBPOWER_BTN_IGNORE BUTTON_PLAY
|
||||
#elif CONFIG_KEYPAD == IRIVER_H300_PAD
|
||||
#define USBPOWER_BUTTON BUTTON_REC
|
||||
#define USBPOWER_BTN_IGNORE BUTTON_ON
|
||||
#endif
|
||||
#endif /* HAVE_USB_POWER */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue