2022-03-20 22:57:36 -04:00
|
|
|
if(IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET STREQUAL "esp32s3")
|
|
|
|
#Disabled for now due to RTC bug IDF-4801
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2022-06-16 04:15:34 -04:00
|
|
|
if(NOT CONFIG_ULP_COPROC_TYPE_FSM AND NOT CONFIG_ULP_COPROC_TYPE_RISCV)
|
|
|
|
# Nothing to test if no co-processor enabled
|
2022-05-20 06:16:47 -04:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2022-02-17 01:14:34 -05:00
|
|
|
if(CONFIG_ULP_COPROC_TYPE_FSM)
|
|
|
|
|
|
|
|
set(src_dirs "ulp_fsm")
|
|
|
|
set(ulp_sources "ulp_fsm/ulp/test_jumps.S")
|
|
|
|
|
|
|
|
elseif(CONFIG_ULP_COPROC_TYPE_RISCV)
|
|
|
|
|
|
|
|
set(src_dirs "ulp_riscv")
|
|
|
|
set(ulp_sources "ulp_riscv/ulp/test_main.c")
|
|
|
|
|
2019-08-06 05:59:26 -04:00
|
|
|
endif()
|
2020-04-17 15:34:56 -04:00
|
|
|
|
2021-12-23 01:12:47 -05:00
|
|
|
idf_component_register(SRC_DIRS ${src_dirs}
|
|
|
|
PRIV_INCLUDE_DIRS .
|
|
|
|
PRIV_REQUIRES cmock ulp soc esp_common driver)
|
|
|
|
|
2020-04-17 15:34:56 -04:00
|
|
|
set(ulp_app_name ulp_test_app)
|
2021-12-23 01:12:47 -05:00
|
|
|
set(ulp_exp_dep_srcs ${src_dirs})
|
2020-04-17 15:34:56 -04:00
|
|
|
ulp_embed_binary(${ulp_app_name} "${ulp_sources}" "${ulp_exp_dep_srcs}")
|