D2 should have HAVE_USB_POWER defined.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23298 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cb2db20a32
commit
9ce9cfc0a9
2 changed files with 6 additions and 0 deletions
|
@ -142,6 +142,9 @@
|
|||
/* Hardware controlled charging */
|
||||
#define CONFIG_CHARGING CHARGING_SIMPLE
|
||||
|
||||
/* Define this if the unit can be powered or charged via USB */
|
||||
#define HAVE_USB_POWER
|
||||
|
||||
/* Define current usage levels. */
|
||||
#define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */
|
||||
#define CURRENT_BACKLIGHT 30 /* TBD */
|
||||
|
|
|
@ -89,6 +89,9 @@ enum {
|
|||
#elif CONFIG_KEYPAD == SAMSUNG_YH_PAD
|
||||
#define USBPOWER_BUTTON BUTTON_RIGHT
|
||||
#define USBPOWER_BTN_IGNORE BUTTON_LEFT
|
||||
#elif CONFIG_KEYPAD == COWOND2_PAD
|
||||
#define USBPOWER_BUTTON BUTTON_MENU
|
||||
#define USBPOWER_BTN_IGNORE BUTTON_MINUS
|
||||
#endif
|
||||
#endif /* HAVE_USB_POWER */
|
||||
|
||||
|
|
Loading…
Reference in a new issue