diff options
| author | Angus Gratton <angus@redyak.com.au> | 2025-05-22 17:38:22 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-05-26 11:15:33 +1000 |
| commit | 22f1d766334f96f48aaaa04a72faeb9a2a37b595 (patch) | |
| tree | dedae50b6f71c24d238e4e4bf6415bdb0d7f1519 /ports/esp32/esp32_common.cmake | |
| parent | 49f81d5046aaeb31f90626426363ae2518dbd810 (diff) | |
shared/tinyusb: Use device event hook to schedule USB task.
Previously MicroPython ports would linker-wrap dcd_event_handler
in order to schedule the USB task callback to run when needed.
TinyUSB 0.16 added proper support for an event hook to do the
same thing without the hacky linker wrapping.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'ports/esp32/esp32_common.cmake')
| -rw-r--r-- | ports/esp32/esp32_common.cmake | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/ports/esp32/esp32_common.cmake b/ports/esp32/esp32_common.cmake index 2e7b95b38..09b120391 100644 --- a/ports/esp32/esp32_common.cmake +++ b/ports/esp32/esp32_common.cmake @@ -97,10 +97,6 @@ if(MICROPY_PY_TINYUSB) list(APPEND MICROPY_INC_TINYUSB ${MICROPY_DIR}/shared/tinyusb/ ) - - list(APPEND MICROPY_LINK_TINYUSB - -Wl,--wrap=dcd_event_handler - ) endif() list(APPEND MICROPY_SOURCE_PORT @@ -261,10 +257,6 @@ target_compile_options(${MICROPY_TARGET} PUBLIC -Wno-missing-field-initializers ) -target_link_options(${MICROPY_TARGET} PUBLIC - ${MICROPY_LINK_TINYUSB} -) - # Additional include directories needed for private NimBLE headers. target_include_directories(${MICROPY_TARGET} PUBLIC ${IDF_PATH}/components/bt/host/nimble/nimble |
