From b245e71e82d4da9b1be27c6de45da1d2bd460751 Mon Sep 17 00:00:00 2001 From: Wei-Han Chen Date: Mon, 11 Dec 2017 14:41:46 +0800 Subject: stm32: add usb_isochronous Templates for USB isochronous implementation. Current implementation only supports TX transmit. Example of usage can be found in CL:803414. Basically, declare an USB isochronous interface by USB_ISOCHRONOUS_CONFIG_FULL(, , , , , , , , , ) where is size of each USB packet, is called when USB hardware has completed a packet. The buffer that USB is not currently using will be passed to , allow applications to write next packet to it. When a SET_INTERFACE packet is received, will be called with bAlternateSetting and bInterfaceNumber. We will declare interface descriptor with bAlternateSetting = 0 and 1 for you, if you need more alternate settings, you need to declare by yourself. BUG=b:70482333 TEST=manually on reworked staff board Signed-off-by: Wei-Han Chen Change-Id: Ic6d41da6ddd7945edf0bdfff55ede38a97661783 Reviewed-on: https://chromium-review.googlesource.com/818853 Commit-Ready: Wei-Han Chen Tested-by: Wei-Han Chen Reviewed-by: Wei-Han Chen Reviewed-by: Nicolas Boichat --- include/config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/config.h b/include/config.h index 4b2364f7e7..5b2697ae93 100644 --- a/include/config.h +++ b/include/config.h @@ -2830,6 +2830,9 @@ /* Compile chip support for the USB device controller */ #undef CONFIG_USB +/* Support USB isochronous handler */ +#undef CONFIG_USB_ISOCHRONOUS + /* Support USB blob handler. */ #undef CONFIG_USB_BLOB -- cgit v1.2.1