Skip to content

Commit a64d5d6

Browse files
tmbincdpgeorge
authored andcommitted
USB CDC ACM: populate bFunction{Class,SubClass,Protocol} in the interface association descriptor
1 parent 0b13f3e commit a64d5d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stmhal/usbdev/class/cdc_msc_hid/src/usbd_cdc_msc_hid.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ __ALIGN_BEGIN static uint8_t USBD_CDC_MSC_CfgDesc[USB_CDC_MSC_CONFIG_DESC_SIZ] _
9292
USB_DESC_TYPE_ASSOCIATION, // bDescriptorType: IAD
9393
CDC_IFACE_NUM, // bFirstInterface: first interface for this association
9494
0x02, // bInterfaceCount: nummber of interfaces for this association
95-
0x00, // bFunctionClass: ?
96-
0x00, // bFunctionSubClass: ?
97-
0x00, // bFunctionProtocol: ?
95+
0x02, // bFunctionClass: Communication Interface Class
96+
0x02, // bFunctionSubClass: Abstract Control Model
97+
0x01, // bFunctionProtocol: Common AT commands
9898
0x00, // iFunction: index of string for this function
9999

100100
//--------------------------------------------------------------------------

0 commit comments

Comments
 (0)