From 260df95e448620114c69ac22834b1da3c5148c0f Mon Sep 17 00:00:00 2001 From: P33M <2474547+P33M@users.noreply.github.com> Date: Wed, 25 Jan 2023 23:19:23 +0000 Subject: [PATCH] tinyusb: enable workaround for RP2040-E15 (#1137) This sets the compile-time flag for tinyusb's dcd_rp2040 driver by default. Applications that won't ever be plugged into a Pi 4 or Pi 400 can optionally disable this. --- src/rp2_common/tinyusb/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rp2_common/tinyusb/CMakeLists.txt b/src/rp2_common/tinyusb/CMakeLists.txt index 8978788..b5079a8 100644 --- a/src/rp2_common/tinyusb/CMakeLists.txt +++ b/src/rp2_common/tinyusb/CMakeLists.txt @@ -29,8 +29,9 @@ if (EXISTS ${PICO_TINYUSB_PATH}/${TINYUSB_TEST_PATH}) add_library(tinyusb_device_unmarked INTERFACE) target_link_libraries(tinyusb_device_unmarked INTERFACE tinyusb_device_base) target_compile_definitions(tinyusb_device_unmarked INTERFACE - # off by default note TUD_OPT_RP2040_USB_DEVICE_ENUMERATION_FIX defaults from PICO_RP2040_USB_DEVICE_ENUMERATION_FIX -# TUD_OPT_RP2040_USB_DEVICE_ENUMERATION_FIX=1 + # off by default note TUD_OPT_RP2040_USB_DEVICE_ENUMERATION_FIX defaults from PICO_RP2040_USB_DEVICE_ENUMERATION_FIX + # TUD_OPT_RP2040_USB_DEVICE_ENUMERATION_FIX=1 + PICO_RP2040_USB_DEVICE_UFRAME_FIX=1 ) # unmarked version used by stdio USB