diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2011-05-16 20:27:14 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2011-05-16 20:27:14 +0000 |
commit | 84b4c46d74d2b757026d425953bf2b033e124016 (patch) | |
tree | 84a1cf9411348eeaef21a243d1d07ac258aa0e37 /firmware/export/usb.h | |
parent | 14cac39d19027723cbb4f83bd97001b9a97c793f (diff) | |
download | rockbox-84b4c46d74d2b757026d425953bf2b033e124016.tar.gz rockbox-84b4c46d74d2b757026d425953bf2b033e124016.zip |
Enter USB charging mode on devices that support it if any key is held down during USB insert (except on Archos where certain keys need to be avoided and players like the iRiver H1x0 which do not charge over USB and the iAudios/AMSv2 which do not yet support USB fully). Update the manual to explain the new behavior.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29889 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/usb.h')
-rw-r--r-- | firmware/export/usb.h | 45 |
1 files changed, 3 insertions, 42 deletions
diff --git a/firmware/export/usb.h b/firmware/export/usb.h index a3425dae2f..72315404e3 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h | |||
@@ -57,7 +57,6 @@ enum { | |||
57 | USB_HANDLED, /* Bootloader status code */ | 57 | USB_HANDLED, /* Bootloader status code */ |
58 | #endif | 58 | #endif |
59 | }; | 59 | }; |
60 | |||
61 | #ifdef HAVE_USB_POWER | 60 | #ifdef HAVE_USB_POWER |
62 | #if CONFIG_KEYPAD == RECORDER_PAD | 61 | #if CONFIG_KEYPAD == RECORDER_PAD |
63 | #define USBPOWER_BUTTON BUTTON_F1 | 62 | #define USBPOWER_BUTTON BUTTON_F1 |
@@ -65,48 +64,10 @@ enum { | |||
65 | #elif CONFIG_KEYPAD == ONDIO_PAD | 64 | #elif CONFIG_KEYPAD == ONDIO_PAD |
66 | #define USBPOWER_BUTTON BUTTON_MENU | 65 | #define USBPOWER_BUTTON BUTTON_MENU |
67 | #define USBPOWER_BTN_IGNORE BUTTON_OFF | 66 | #define USBPOWER_BTN_IGNORE BUTTON_OFF |
68 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) | 67 | #else |
69 | #define USBPOWER_BUTTON BUTTON_MENU | 68 | #define USBPOWER_BTN_IGNORE 0 |
70 | #define USBPOWER_BTN_IGNORE BUTTON_PLAY | 69 | #endif |
71 | #elif CONFIG_KEYPAD == IRIVER_H300_PAD | ||
72 | #define USBPOWER_BUTTON BUTTON_MODE | ||
73 | #define USBPOWER_BTN_IGNORE BUTTON_ON | ||
74 | #elif CONFIG_KEYPAD == GIGABEAT_PAD | ||
75 | #define USBPOWER_BUTTON BUTTON_MENU | ||
76 | #define USBPOWER_BTN_IGNORE BUTTON_POWER | ||
77 | #elif (CONFIG_KEYPAD == IRIVER_H10_PAD) || \ | ||
78 | (CONFIG_KEYPAD == MROBE100_PAD) | ||
79 | #define USBPOWER_BUTTON BUTTON_RIGHT | ||
80 | #define USBPOWER_BTN_IGNORE BUTTON_POWER | ||
81 | #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ | ||
82 | (CONFIG_KEYPAD == SANSA_C200_PAD) || \ | ||
83 | (CONFIG_KEYPAD == SANSA_CLIP_PAD) || \ | ||
84 | (CONFIG_KEYPAD == SANSA_FUZE_PAD) | ||
85 | #define USBPOWER_BUTTON BUTTON_SELECT | ||
86 | #define USBPOWER_BTN_IGNORE BUTTON_POWER | ||
87 | #elif (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) | ||
88 | #define USBPOWER_BUTTON BUTTON_PLAY | ||
89 | #define USBPOWER_BTN_IGNORE BUTTON_POWER | ||
90 | #elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD | ||
91 | #define USBPOWER_BUTTON BUTTON_PLAYLIST | ||
92 | #define USBPOWER_BTN_IGNORE BUTTON_POWER | ||
93 | #elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD | ||
94 | #define USBPOWER_BUTTON BUTTON_LEFT | ||
95 | #define USBPOWER_BTN_IGNORE BUTTON_POWER | ||
96 | #elif CONFIG_KEYPAD == SAMSUNG_YH_PAD | ||
97 | #define USBPOWER_BUTTON BUTTON_RIGHT | ||
98 | #define USBPOWER_BTN_IGNORE BUTTON_LEFT | ||
99 | #elif CONFIG_KEYPAD == COWON_D2_PAD | ||
100 | #define USBPOWER_BUTTON BUTTON_MENU | ||
101 | #define USBPOWER_BTN_IGNORE BUTTON_MINUS | ||
102 | #elif CONFIG_KEYPAD == ONDAVX747_PAD | ||
103 | #define USBPOWER_BUTTON BUTTON_VOL_UP | ||
104 | #define USBPOWER_BTN_IGNORE BUTTON_VOL_DOWN | ||
105 | #elif CONFIG_KEYPAD == PBELL_VIBE500_PAD | ||
106 | #define USBPOWER_BUTTON BUTTON_REC | ||
107 | #define USBPOWER_BTN_IGNORE BUTTON_POWER | ||
108 | #endif | 70 | #endif |
109 | #endif /* HAVE_USB_POWER */ | ||
110 | 71 | ||
111 | #ifdef HAVE_USBSTACK | 72 | #ifdef HAVE_USBSTACK |
112 | /* USB class drivers */ | 73 | /* USB class drivers */ |