diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-25 01:12:41 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-25 01:14:39 +0100 |
commit | 21dfd207caf1ea07e7d821d20a19525b72913223 (patch) | |
tree | 17f9312f3e968b7cb824e53f34159300b05341ca | |
parent | a64d5d67b565433a57210aaf1b8a0398c2cc0df9 (diff) | |
download | micropython-21dfd207caf1ea07e7d821d20a19525b72913223.tar.gz micropython-21dfd207caf1ea07e7d821d20a19525b72913223.zip |
stmhal: Fill in USB class/subclass/proto for CDC+HID device.
Also change HID device from keyboard to mouse (should have been mouse
all along).
-rw-r--r-- | stmhal/usbdev/class/cdc_msc_hid/src/usbd_cdc_msc_hid.c | 8 |
1 files changed, 4 insertions, 4 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 ef156ffe54..02d2bba607 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 @@ -229,9 +229,9 @@ __ALIGN_BEGIN static uint8_t USBD_CDC_HID_CfgDesc[USB_CDC_HID_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 //-------------------------------------------------------------------------- @@ -324,7 +324,7 @@ __ALIGN_BEGIN static uint8_t USBD_CDC_HID_CfgDesc[USB_CDC_HID_CONFIG_DESC_SIZ] _ 0x01, // bNumEndpoints 0x03, // bInterfaceClass: HID Class 0x01, // bInterfaceSubClass: 1=BOOT, 0=no boot - 0x01, // nInterfaceProtocol: 0=none, 1=keyboard, 2=mouse + 0x02, // nInterfaceProtocol: 0=none, 1=keyboard, 2=mouse 0x00, // iInterface: // HID descriptor |