mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
a0e3d488da
This commit enables ULP FSM support for esp32s3 and updates ULP FSM code flow for other chips. It adds C Macro support for the ULP FSM instruction set on esp32s2 and esp32s3. The unit tests are also updated to test ULP FSM on ep32s2 and esp32s3.
21 lines
707 B
CMake
21 lines
707 B
CMake
if(IDF_TARGET STREQUAL "esp32")
|
|
set(src_dirs "ulp_fsm")
|
|
set(ulp_sources "ulp_fsm/ulp/test_jumps.S")
|
|
elseif(IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET STREQUAL "esp32s3")
|
|
if(CONFIG_ESP32S2_ULP_COPROC_RISCV OR CONFIG_ESP32S3_ULP_COPROC_RISCV)
|
|
set(src_dirs "ulp_riscv")
|
|
set(ulp_sources "ulp_riscv/ulp/test_main.c")
|
|
else()
|
|
set(src_dirs "ulp_fsm")
|
|
set(ulp_sources "ulp_fsm/ulp/test_jumps.S")
|
|
endif()
|
|
endif()
|
|
|
|
idf_component_register(SRC_DIRS ${src_dirs}
|
|
PRIV_INCLUDE_DIRS .
|
|
PRIV_REQUIRES cmock ulp soc esp_common driver)
|
|
|
|
set(ulp_app_name ulp_test_app)
|
|
set(ulp_exp_dep_srcs ${src_dirs})
|
|
ulp_embed_binary(${ulp_app_name} "${ulp_sources}" "${ulp_exp_dep_srcs}")
|