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:
Rob Purchase 2009-10-20 20:44:30 +00:00
parent cb2db20a32
commit 9ce9cfc0a9
2 changed files with 6 additions and 0 deletions

View file

@ -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 */

View file

@ -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 */