From 164b26ee6bb0a24924e9736178808b676288845e Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 12 Jul 2019 14:53:11 +0700 Subject: change TUD_HID_INOUT_DESCRIPTOR epout & epin order clean up, adding template for BOS & BOS platform descriptor --- examples/device/webusb/src/usb_descriptors.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/device/webusb/src') diff --git a/examples/device/webusb/src/usb_descriptors.c b/examples/device/webusb/src/usb_descriptors.c index 5149d85c5..4bc32f6ca 100644 --- a/examples/device/webusb/src/usb_descriptors.c +++ b/examples/device/webusb/src/usb_descriptors.c @@ -39,7 +39,7 @@ tusb_desc_device_t const desc_device = { .bLength = sizeof(tusb_desc_device_t), .bDescriptorType = TUSB_DESC_DEVICE, - .bcdUSB = 0x0210, + .bcdUSB = 0x0210, // at least 2.1 or 3.x .bDeviceClass = 0x00, .bDeviceSubClass = 0x00, .bDeviceProtocol = 0x00, @@ -56,6 +56,8 @@ tusb_desc_device_t const desc_device = .bNumConfigurations = 0x01 }; +// BOS Descriptor: required for webUSB + //------------- Configuration Descriptor -------------// enum { -- cgit v1.3.1