summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/usbdev
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2014-10-24 14:54:32 +0200
committerDamien George <damien.p.george@gmail.com>2014-10-25 01:14:39 +0100
commita64d5d67b565433a57210aaf1b8a0398c2cc0df9 (patch)
treea34406f64ba5ee83338e05de5fe03a12628c51c8 /stmhal/usbdev
parent0b13f3e026c842facf65743450246b15a8c2e064 (diff)
downloadmicropython-a64d5d67b565433a57210aaf1b8a0398c2cc0df9.tar.gz
micropython-a64d5d67b565433a57210aaf1b8a0398c2cc0df9.zip
USB CDC ACM: populate bFunction{Class,SubClass,Protocol} in the interface association descriptor
Diffstat (limited to 'stmhal/usbdev')
-rw-r--r--stmhal/usbdev/class/cdc_msc_hid/src/usbd_cdc_msc_hid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stmhal/usbdev/class/cdc_msc_hid/src/usbd_cdc_msc_hid.c b/stmhal/usbdev/class/cdc_msc_hid/src/usbd_cdc_msc_hid.c
index aa8c0c80cf..ef156ffe54 100644
--- a/stmhal/usbdev/class/cdc_msc_hid/src/usbd_cdc_msc_hid.c
+++ b/stmhal/usbdev/class/cdc_msc_hid/src/usbd_cdc_msc_hid.c
@@ -92,9 +92,9 @@ __ALIGN_BEGIN static uint8_t USBD_CDC_MSC_CfgDesc[USB_CDC_MSC_CONFIG_DESC_SIZ] _
USB_DESC_TYPE_ASSOCIATION, // bDescriptorType: IAD
CDC_IFACE_NUM, // bFirstInterface: first interface for this association
0x02, // bInterfaceCount: nummber of interfaces for this association
- 0x00, // bFunctionClass: ?
- 0x00, // bFunctionSubClass: ?
- 0x00, // bFunctionProtocol: ?
+ 0x02, // bFunctionClass: Communication Interface Class
+ 0x02, // bFunctionSubClass: Abstract Control Model
+ 0x01, // bFunctionProtocol: Common AT commands
0x00, // iFunction: index of string for this function
//--------------------------------------------------------------------------