From d4dc3b2717a550e181d3021278e42e090b5dad20 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 29 Jan 2021 11:54:46 +0100 Subject: [PATCH] The USB CDC is no modem and does not use the AT protocol Signed-off-by: Martin --- src/platforms/common/cdcacm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platforms/common/cdcacm.c b/src/platforms/common/cdcacm.c index 9113613..2ad6119 100644 --- a/src/platforms/common/cdcacm.c +++ b/src/platforms/common/cdcacm.c @@ -144,7 +144,7 @@ static const struct usb_interface_descriptor gdb_comm_iface[] = {{ .bNumEndpoints = 1, .bInterfaceClass = USB_CLASS_CDC, .bInterfaceSubClass = USB_CDC_SUBCLASS_ACM, - .bInterfaceProtocol = USB_CDC_PROTOCOL_AT, + .bInterfaceProtocol = USB_CDC_PROTOCOL_NONE, .iInterface = 4, .endpoint = gdb_comm_endp, @@ -174,7 +174,7 @@ static const struct usb_iface_assoc_descriptor gdb_assoc = { .bInterfaceCount = 2, .bFunctionClass = USB_CLASS_CDC, .bFunctionSubClass = USB_CDC_SUBCLASS_ACM, - .bFunctionProtocol = USB_CDC_PROTOCOL_AT, + .bFunctionProtocol = USB_CDC_PROTOCOL_NONE, .iFunction = 0, }; @@ -247,7 +247,7 @@ static const struct usb_interface_descriptor uart_comm_iface[] = {{ .bNumEndpoints = 1, .bInterfaceClass = USB_CLASS_CDC, .bInterfaceSubClass = USB_CDC_SUBCLASS_ACM, - .bInterfaceProtocol = USB_CDC_PROTOCOL_AT, + .bInterfaceProtocol = USB_CDC_PROTOCOL_NONE, .iInterface = 5, .endpoint = uart_comm_endp, @@ -277,7 +277,7 @@ static const struct usb_iface_assoc_descriptor uart_assoc = { .bInterfaceCount = 2, .bFunctionClass = USB_CLASS_CDC, .bFunctionSubClass = USB_CDC_SUBCLASS_ACM, - .bFunctionProtocol = USB_CDC_PROTOCOL_AT, + .bFunctionProtocol = USB_CDC_PROTOCOL_NONE, .iFunction = 0, };