From 82efb1150e2c47b13857cc705b46fba4a57a9cf5 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Mon, 20 Sep 2021 01:41:26 +0100 Subject: 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 --- firmware/export/config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/config.h b/firmware/export/config.h index 5700fad37f..870ae43785 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -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 */ -- cgit v1.2.3