DUE USB composite device field corrections (#14185)
This commit is contained in:
parent
f889cc6ea6
commit
688b54d66a
|
@ -67,9 +67,9 @@ UDC_DESC_STORAGE usb_dev_desc_t udc_device_desc = {
|
||||||
.bLength = sizeof(usb_dev_desc_t),
|
.bLength = sizeof(usb_dev_desc_t),
|
||||||
.bDescriptorType = USB_DT_DEVICE,
|
.bDescriptorType = USB_DT_DEVICE,
|
||||||
.bcdUSB = LE16(USB_V2_0),
|
.bcdUSB = LE16(USB_V2_0),
|
||||||
.bDeviceClass = 0,
|
.bDeviceClass = CDC_CLASS_MULTI,
|
||||||
.bDeviceSubClass = 0,
|
.bDeviceSubClass = CDC_SUBCLASS_ACM,
|
||||||
.bDeviceProtocol = 0,
|
.bDeviceProtocol = CDC_PROTOCOL_V25TER,
|
||||||
.bMaxPacketSize0 = USB_DEVICE_EP_CTRL_SIZE,
|
.bMaxPacketSize0 = USB_DEVICE_EP_CTRL_SIZE,
|
||||||
.idVendor = LE16(USB_DEVICE_VENDOR_ID),
|
.idVendor = LE16(USB_DEVICE_VENDOR_ID),
|
||||||
.idProduct = LE16(USB_DEVICE_PRODUCT_ID),
|
.idProduct = LE16(USB_DEVICE_PRODUCT_ID),
|
||||||
|
@ -101,9 +101,9 @@ UDC_DESC_STORAGE usb_dev_qual_desc_t udc_device_qual = {
|
||||||
.bLength = sizeof(usb_dev_qual_desc_t),
|
.bLength = sizeof(usb_dev_qual_desc_t),
|
||||||
.bDescriptorType = USB_DT_DEVICE_QUALIFIER,
|
.bDescriptorType = USB_DT_DEVICE_QUALIFIER,
|
||||||
.bcdUSB = LE16(USB_V2_0),
|
.bcdUSB = LE16(USB_V2_0),
|
||||||
.bDeviceClass = 0,
|
.bDeviceClass = CDC_CLASS_MULTI,
|
||||||
.bDeviceSubClass = 0,
|
.bDeviceSubClass = CDC_SUBCLASS_ACM,
|
||||||
.bDeviceProtocol = 0,
|
.bDeviceProtocol = CDC_PROTOCOL_V25TER,
|
||||||
.bMaxPacketSize0 = USB_DEVICE_EP_CTRL_SIZE,
|
.bMaxPacketSize0 = USB_DEVICE_EP_CTRL_SIZE,
|
||||||
.bNumConfigurations = 1
|
.bNumConfigurations = 1
|
||||||
};
|
};
|
||||||
|
|
|
@ -61,6 +61,8 @@
|
||||||
#define CDC_CLASS_DEVICE 0x02 //!< USB Communication Device Class
|
#define CDC_CLASS_DEVICE 0x02 //!< USB Communication Device Class
|
||||||
#define CDC_CLASS_COMM 0x02 //!< CDC Communication Class Interface
|
#define CDC_CLASS_COMM 0x02 //!< CDC Communication Class Interface
|
||||||
#define CDC_CLASS_DATA 0x0A //!< CDC Data Class Interface
|
#define CDC_CLASS_DATA 0x0A //!< CDC Data Class Interface
|
||||||
|
#define CDC_CLASS_MULTI 0xEF //!< CDC Multi-interface Function
|
||||||
|
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
//! \name USB CDC Subclass IDs
|
//! \name USB CDC Subclass IDs
|
||||||
|
|
Loading…
Reference in a new issue