File tree Expand file tree Collapse file tree 4 files changed +39
-4
lines changed
Expand file tree Collapse file tree 4 files changed +39
-4
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,18 @@ set(priv_include_dirs
2323
2424set (dependencies
2525 "esp_timer"
26- "driver"
2726 "hal"
2827 "util"
28+ "esp_ringbuf"
2929)
3030
31+ # Starting from esp-idf v5.3, the GPIO driver is moved to a separate component
32+ if ("${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} " VERSION_GREATER_EQUAL "5.3" )
33+ list (APPEND dependencies "esp_driver_gpio" )
34+ else ()
35+ list (APPEND dependencies "driver" )
36+ endif ()
37+
3138idf_component_register(
3239 SRCS
3340 ${DAP_sources}
Original file line number Diff line number Diff line change 1+ set (priv_requires esp-serial-flasher freertos esp_timer)
2+
3+ # Starting from esp-idf v5.3, the GPIO and UART drivers are moved to separate components
4+ if ("${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} " VERSION_GREATER_EQUAL "5.3" )
5+ list (APPEND priv_requires "esp_driver_gpio" "esp_driver_uart" )
6+ else ()
7+ list (APPEND priv_requires "driver" )
8+ endif ()
9+
110idf_component_register(SRCS "serial_handler.c"
211 INCLUDE_DIRS "include"
3- PRIV_REQUIRES esp-serial-flasher driver freertos esp_timer )
12+ PRIV_REQUIRES ${priv_requires} )
Original file line number Diff line number Diff line change 1+ set (dependencies freertos esp_system)
2+
3+ # Starting from esp-idf v5.3, the GPIO driver is moved to a separate component
4+ if ("${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} " VERSION_GREATER_EQUAL "5.3" )
5+ list (APPEND dependencies "esp_driver_gpio" )
6+ else ()
7+ list (APPEND dependencies "driver" )
8+ endif ()
9+
110idf_component_register(SRCS "util.c"
211 INCLUDE_DIRS "include"
3- REQUIRES driver freertos esp_system)
12+ REQUIRES ${dependencies}
13+ )
Original file line number Diff line number Diff line change 1+ set (dependencies "tinyusb" "esp_timer" "usb" "util" "serial_handler" "debug_probe" "esp_ringbuf" )
2+
3+ # Starting from esp-idf v5.3, the GPIO driver is moved to a separate component
4+ if ("${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} " VERSION_GREATER_EQUAL "5.3" )
5+ list (APPEND dependencies "esp_driver_gpio" )
6+ else ()
7+ list (APPEND dependencies "driver" )
8+ endif ()
9+
110idf_component_register(SRCS "main.c"
211 "msc.c"
312 "eub_vendord.c"
413 "serial_bridge.c"
5- REQUIRES "tinyusb" "driver" "esp_timer" "usb" "util" "serial_handler" "debug_probe"
14+ REQUIRES ${dependencies}
615 LDFRAGMENTS "noflash.lf"
716 INCLUDE_DIRS "." "public_include" )
817
You can’t perform that action at this time.
0 commit comments