Skip to content

Commit b10719b

Browse files
committed
RP2040 only support full speed. Advertising as USB2.0 triggers irrelevant negotiation.
1 parent 5311fb8 commit b10719b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/arduino/Adafruit_USBD_Device.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,11 @@ bool Adafruit_USBD_Device::attach(void) { return tud_connect(); }
176176
void Adafruit_USBD_Device::clearConfiguration(void) {
177177
tusb_desc_device_t const desc_dev = {.bLength = sizeof(tusb_desc_device_t),
178178
.bDescriptorType = TUSB_DESC_DEVICE,
179+
#if CFG_TUSB_MCU==OPT_MCU_RP2040 // RP2040 only supports full speed
180+
.bcdUSB = 0x0110,
181+
#else
179182
.bcdUSB = 0x0200,
183+
#endif
180184
.bDeviceClass = 0,
181185
.bDeviceSubClass = 0,
182186
.bDeviceProtocol = 0,

0 commit comments

Comments
 (0)