mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
usb: implement new API with legacy emulation layer
All existing USB drivers now define USB_LEGACY_CONTROL_API to enable the emulation layer. Control request handlers will be ported in follow-up commits. Change-Id: I4be1ce7c372f2f6fee5978a4858c841b72e77405
This commit is contained in:
parent
dff8320a5d
commit
82efb1150e
2 changed files with 130 additions and 20 deletions
|
|
@ -1172,6 +1172,7 @@ Lyre prototype 1 */
|
|||
/* Define the implemented USB transport classes */
|
||||
#if CONFIG_USBOTG == USBOTG_ISP1583
|
||||
#define USB_HAS_BULK
|
||||
#define USB_LEGACY_CONTROL_API
|
||||
#elif (CONFIG_USBOTG == USBOTG_ARC) || \
|
||||
(CONFIG_USBOTG == USBOTG_JZ4740) || \
|
||||
(CONFIG_USBOTG == USBOTG_JZ4760) || \
|
||||
|
|
@ -1182,10 +1183,13 @@ Lyre prototype 1 */
|
|||
(CONFIG_USBOTG == USBOTG_TNETV105)
|
||||
#define USB_HAS_BULK
|
||||
#define USB_HAS_INTERRUPT
|
||||
#define USB_LEGACY_CONTROL_API
|
||||
#elif defined(CPU_TCC780X)
|
||||
#define USB_HAS_BULK
|
||||
#define USB_LEGACY_CONTROL_API
|
||||
#elif CONFIG_USBOTG == USBOTG_S3C6400X
|
||||
#define USB_HAS_BULK
|
||||
#define USB_LEGACY_CONTROL_API
|
||||
//#define USB_HAS_INTERRUPT -- seems to be broken
|
||||
#endif /* CONFIG_USBOTG */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue