File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/rp2_common/pico_stdio_usb Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 9292static const tusb_desc_device_t usbd_desc_device = {
9393 .bLength = sizeof (tusb_desc_device_t ),
9494 .bDescriptorType = TUSB_DESC_DEVICE ,
95+ // On Windows, if bcdUSB = 0x210 then a Microsoft OS 2.0 descriptor is required, else the device won't be detected
96+ // This is only needed for driverless access to the reset interface - the CDC interface doesn't require these descriptors
97+ // for driverless access, but will still not work if bcdUSB = 0x210 and no descriptor is provided. Therefore always
98+ // use bcdUSB = 0x200 if the Microsoft OS 2.0 descriptor isn't enabled
99+ #if PICO_STDIO_USB_ENABLE_RESET_VIA_VENDOR_INTERFACE && PICO_STDIO_USB_RESET_INTERFACE_SUPPORT_MS_OS_20_DESCRIPTOR
95100 .bcdUSB = 0x0210 ,
101+ #else
102+ .bcdUSB = 0x0200 ,
103+ #endif
96104 .bDeviceClass = TUSB_CLASS_MISC ,
97105 .bDeviceSubClass = MISC_SUBCLASS_COMMON ,
98106 .bDeviceProtocol = MISC_PROTOCOL_IAD ,
You can’t perform that action at this time.
0 commit comments