mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
composite: Use the correct USB dual-speed descriptor when enabling IAD
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
@@ -162,9 +162,15 @@ static const struct usb_qualdesc_s g_qualdesc =
|
|||||||
LSBYTE(0x0200),
|
LSBYTE(0x0200),
|
||||||
MSBYTE(0x0200)
|
MSBYTE(0x0200)
|
||||||
},
|
},
|
||||||
|
# ifdef CONFIG_COMPOSITE_IAD
|
||||||
|
USB_CLASS_MISC, /* classid */
|
||||||
|
2, /* subclass */
|
||||||
|
1, /* protocol */
|
||||||
|
# else
|
||||||
USB_CLASS_VENDOR_SPEC, /* classid */
|
USB_CLASS_VENDOR_SPEC, /* classid */
|
||||||
0, /* subclass */
|
0, /* subclass */
|
||||||
0, /* protocol */
|
0, /* protocol */
|
||||||
|
# endif
|
||||||
CONFIG_COMPOSITE_EP0MAXPACKET, /* mxpacketsize */
|
CONFIG_COMPOSITE_EP0MAXPACKET, /* mxpacketsize */
|
||||||
COMPOSITE_NCONFIGS, /* nconfigs */
|
COMPOSITE_NCONFIGS, /* nconfigs */
|
||||||
0, /* reserved */
|
0, /* reserved */
|
||||||
|
|||||||
Reference in New Issue
Block a user