aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George2021-04-01 13:36:26 +1100
committerDamien George2021-04-06 11:40:02 +1000
commit2d8aecd2ad43afeeb14fb8a21fcff29a1000c5c4 (patch)
tree7d4b6c930a753d05535f6913276021f31dad509b
parentf541b3673d272fbe9081a96776072a83ac5add9d (diff)
rp2/CMakeLists.txt: Enable USB enumeration fix.
This is a workaround for errata RP2040-E5, and is needed to make USB more reliable on certain USB ports. Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/rp2/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt
index 3db0e6b62..37b041279 100644
--- a/ports/rp2/CMakeLists.txt
+++ b/ports/rp2/CMakeLists.txt
@@ -170,6 +170,7 @@ target_compile_definitions(${MICROPY_TARGET} PRIVATE
PICO_NO_PROGRAM_VERSION_STRING=1 # do it ourselves in main.c
MICROPY_BUILD_TYPE="${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} ${CMAKE_BUILD_TYPE}"
PICO_NO_BI_STDIO_UART=1 # we call it UART REPL
+ PICO_RP2040_USB_DEVICE_ENUMERATION_FIX=1
)
target_link_libraries(${MICROPY_TARGET}