diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-11-02 04:37:57 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-11-02 04:37:57 +0000 |
commit | 02385cb5b02ecd13ee63fb636a8ed65071407b01 (patch) | |
tree | b8d1a58c7676ec0ff6d989f2b6990b6a7dea0a17 /firmware/export | |
parent | 451f9d58f35a2372a119caa4d9ca56879d8aae4c (diff) | |
download | rockbox-02385cb5b02ecd13ee63fb636a8ed65071407b01.tar.gz rockbox-02385cb5b02ecd13ee63fb636a8ed65071407b01.zip |
M:Robe 500/M66591 USB improvements: Interrupts now work, a bug in odd-length transfers has been fixed. Buffers that are not initially short aligned are also now supported. Enable USB HID mouse mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23483 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-mrobe500.h | 3 | ||||
-rw-r--r-- | firmware/export/usb.h | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/firmware/export/config-mrobe500.h b/firmware/export/config-mrobe500.h index d9dc054524..9d04aac125 100644 --- a/firmware/export/config-mrobe500.h +++ b/firmware/export/config-mrobe500.h | |||
@@ -207,7 +207,7 @@ | |||
207 | /* enable these for the usb stack */ | 207 | /* enable these for the usb stack */ |
208 | #define CONFIG_USBOTG USBOTG_M66591 | 208 | #define CONFIG_USBOTG USBOTG_M66591 |
209 | #define USE_ROCKBOX_USB | 209 | #define USE_ROCKBOX_USB |
210 | //#define USB_ENABLE_SERIAL | 210 | |
211 | #define HAVE_USBSTACK | 211 | #define HAVE_USBSTACK |
212 | //#define HAVE_USB_POWER | 212 | //#define HAVE_USB_POWER |
213 | //#define USBPOWER_BUTTON BUTTON_POWER | 213 | //#define USBPOWER_BUTTON BUTTON_POWER |
@@ -216,6 +216,7 @@ | |||
216 | #define USB_NUM_ENDPOINTS 7 | 216 | #define USB_NUM_ENDPOINTS 7 |
217 | #define USB_VENDOR_ID 0x07b4 | 217 | #define USB_VENDOR_ID 0x07b4 |
218 | #define USB_PRODUCT_ID 0x0281 | 218 | #define USB_PRODUCT_ID 0x0281 |
219 | #define HAVE_USB_HID_MOUSE | ||
219 | 220 | ||
220 | /* Define this if hardware supports alternate blitting */ | 221 | /* Define this if hardware supports alternate blitting */ |
221 | #define HAVE_LCD_MODES LCD_MODE_RGB565 | LCD_MODE_YUV | LCD_MODE_PAL256 | 222 | #define HAVE_LCD_MODES LCD_MODE_RGB565 | LCD_MODE_YUV | LCD_MODE_PAL256 |
diff --git a/firmware/export/usb.h b/firmware/export/usb.h index c380ac518d..d432b39b14 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h | |||
@@ -98,10 +98,18 @@ enum { | |||
98 | #ifdef HAVE_USBSTACK | 98 | #ifdef HAVE_USBSTACK |
99 | /* USB class drivers */ | 99 | /* USB class drivers */ |
100 | enum { | 100 | enum { |
101 | #ifdef USB_ENABLE_STORAGE | ||
101 | USB_DRIVER_MASS_STORAGE, | 102 | USB_DRIVER_MASS_STORAGE, |
103 | #endif | ||
104 | #ifdef USB_ENABLE_SERIAL | ||
102 | USB_DRIVER_SERIAL, | 105 | USB_DRIVER_SERIAL, |
106 | #endif | ||
107 | #ifdef USB_ENABLE_CHARGING_ONLY | ||
103 | USB_DRIVER_CHARGING_ONLY, | 108 | USB_DRIVER_CHARGING_ONLY, |
109 | #endif | ||
110 | #ifdef USB_ENABLE_HID | ||
104 | USB_DRIVER_HID, | 111 | USB_DRIVER_HID, |
112 | #endif | ||
105 | USB_NUM_DRIVERS | 113 | USB_NUM_DRIVERS |
106 | }; | 114 | }; |
107 | 115 | ||