mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
Set Net example to use IAD device class
This commit is contained in:
parent
eb2aaa5de8
commit
be9326dc33
@ -56,9 +56,11 @@ tusb_desc_device_t const desc_device =
|
|||||||
.bDescriptorType = TUSB_DESC_DEVICE,
|
.bDescriptorType = TUSB_DESC_DEVICE,
|
||||||
.bcdUSB = 0x0200,
|
.bcdUSB = 0x0200,
|
||||||
|
|
||||||
.bDeviceClass = TUSB_CLASS_UNSPECIFIED,
|
// Use Interface Association Descriptor (IAD) device class
|
||||||
.bDeviceSubClass = 0,
|
.bDeviceClass = TUSB_CLASS_MISC,
|
||||||
.bDeviceProtocol = 0,
|
.bDeviceSubClass = MISC_SUBCLASS_COMMON,
|
||||||
|
.bDeviceProtocol = MISC_PROTOCOL_IAD,
|
||||||
|
|
||||||
.bMaxPacketSize0 = CFG_TUD_ENDPOINT0_SIZE,
|
.bMaxPacketSize0 = CFG_TUD_ENDPOINT0_SIZE,
|
||||||
|
|
||||||
.idVendor = 0xCafe,
|
.idVendor = 0xCafe,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user