From 02385cb5b02ecd13ee63fb636a8ed65071407b01 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Mon, 2 Nov 2009 04:37:57 +0000 Subject: 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 --- firmware/export/config-mrobe500.h | 3 ++- firmware/export/usb.h | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'firmware/export') 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 @@ /* enable these for the usb stack */ #define CONFIG_USBOTG USBOTG_M66591 #define USE_ROCKBOX_USB -//#define USB_ENABLE_SERIAL + #define HAVE_USBSTACK //#define HAVE_USB_POWER //#define USBPOWER_BUTTON BUTTON_POWER @@ -216,6 +216,7 @@ #define USB_NUM_ENDPOINTS 7 #define USB_VENDOR_ID 0x07b4 #define USB_PRODUCT_ID 0x0281 +#define HAVE_USB_HID_MOUSE /* Define this if hardware supports alternate blitting */ #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 { #ifdef HAVE_USBSTACK /* USB class drivers */ enum { +#ifdef USB_ENABLE_STORAGE USB_DRIVER_MASS_STORAGE, +#endif +#ifdef USB_ENABLE_SERIAL USB_DRIVER_SERIAL, +#endif +#ifdef USB_ENABLE_CHARGING_ONLY USB_DRIVER_CHARGING_ONLY, +#endif +#ifdef USB_ENABLE_HID USB_DRIVER_HID, +#endif USB_NUM_DRIVERS }; -- cgit v1.2.3