summaryrefslogtreecommitdiff
path: root/chip/stm32/usb-stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/usb-stream.h')
-rw-r--r--chip/stm32/usb-stream.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chip/stm32/usb-stream.h b/chip/stm32/usb-stream.h
index 92cfc4e60d..796eacaa17 100644
--- a/chip/stm32/usb-stream.h
+++ b/chip/stm32/usb-stream.h
@@ -105,6 +105,7 @@ extern struct out_stream_ops const usb_stream_out_stream_ops;
*/
#define USB_STREAM_CONFIG(NAME, \
INTERFACE, \
+ INTERFACE_NAME, \
ENDPOINT, \
RX_SIZE, \
TX_SIZE, \
@@ -153,7 +154,7 @@ extern struct out_stream_ops const usb_stream_out_stream_ops;
.bInterfaceClass = USB_CLASS_VENDOR_SPEC, \
.bInterfaceSubClass = USB_SUBCLASS_GOOGLE_SERIAL, \
.bInterfaceProtocol = USB_PROTOCOL_GOOGLE_SERIAL, \
- .iInterface = 0, \
+ .iInterface = INTERFACE_NAME, \
}; \
const struct usb_endpoint_descriptor \
USB_EP_DESC(INTERFACE, 0) = { \