summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2009-10-20 20:44:30 +0000
committerRob Purchase <shotofadds@rockbox.org>2009-10-20 20:44:30 +0000
commit9ce9cfc0a92673555042b58af0772a2f2a35ab12 (patch)
tree94a1754bd3564eec108be772112828a376ee2835 /firmware/export
parentcb2db20a32b1bdb81803c11c7a3133e94c10a560 (diff)
downloadrockbox-9ce9cfc0a92673555042b58af0772a2f2a35ab12.tar.gz
rockbox-9ce9cfc0a92673555042b58af0772a2f2a35ab12.zip
D2 should have HAVE_USB_POWER defined.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23298 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-cowond2.h3
-rw-r--r--firmware/export/usb.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/config-cowond2.h b/firmware/export/config-cowond2.h
index 4341575218..45bf90bbd0 100644
--- a/firmware/export/config-cowond2.h
+++ b/firmware/export/config-cowond2.h
@@ -142,6 +142,9 @@
142/* Hardware controlled charging */ 142/* Hardware controlled charging */
143#define CONFIG_CHARGING CHARGING_SIMPLE 143#define CONFIG_CHARGING CHARGING_SIMPLE
144 144
145/* Define this if the unit can be powered or charged via USB */
146#define HAVE_USB_POWER
147
145/* Define current usage levels. */ 148/* Define current usage levels. */
146#define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */ 149#define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */
147#define CURRENT_BACKLIGHT 30 /* TBD */ 150#define CURRENT_BACKLIGHT 30 /* TBD */
diff --git a/firmware/export/usb.h b/firmware/export/usb.h
index 2707541bff..911fa931d9 100644
--- a/firmware/export/usb.h
+++ b/firmware/export/usb.h
@@ -89,6 +89,9 @@ enum {
89#elif CONFIG_KEYPAD == SAMSUNG_YH_PAD 89#elif CONFIG_KEYPAD == SAMSUNG_YH_PAD
90#define USBPOWER_BUTTON BUTTON_RIGHT 90#define USBPOWER_BUTTON BUTTON_RIGHT
91#define USBPOWER_BTN_IGNORE BUTTON_LEFT 91#define USBPOWER_BTN_IGNORE BUTTON_LEFT
92#elif CONFIG_KEYPAD == COWOND2_PAD
93#define USBPOWER_BUTTON BUTTON_MENU
94#define USBPOWER_BTN_IGNORE BUTTON_MINUS
92#endif 95#endif
93#endif /* HAVE_USB_POWER */ 96#endif /* HAVE_USB_POWER */
94 97