2020-12-29 05:20:24 +00:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2020-04-17 19:34:56 +00:00
|
|
|
|
2021-12-23 06:12:47 +00:00
|
|
|
set(srcs "")
|
2022-01-21 09:13:48 +00:00
|
|
|
set(includes "")
|
|
|
|
|
2023-03-09 06:14:09 +00:00
|
|
|
if(CONFIG_ULP_COPROC_TYPE_FSM OR CONFIG_SOC_RISCV_COPROC_SUPPORTED)
|
2020-12-29 05:20:24 +00:00
|
|
|
|
2021-12-23 06:12:47 +00:00
|
|
|
list(APPEND srcs
|
2022-09-02 08:18:14 +00:00
|
|
|
"ulp_common/ulp_common.c"
|
|
|
|
"ulp_common/ulp_adc.c")
|
2022-01-21 09:13:48 +00:00
|
|
|
|
|
|
|
list(APPEND includes
|
|
|
|
ulp_common/include
|
|
|
|
ulp_common/include/${target})
|
|
|
|
|
|
|
|
if(CONFIG_ULP_COPROC_TYPE_FSM)
|
|
|
|
list(APPEND srcs
|
|
|
|
"ulp_fsm/ulp.c"
|
|
|
|
"ulp_fsm/ulp_macro.c")
|
|
|
|
|
|
|
|
list(APPEND includes
|
2022-02-17 06:14:34 +00:00
|
|
|
ulp_fsm/include
|
|
|
|
ulp_fsm/include/${target})
|
2020-04-17 19:34:56 +00:00
|
|
|
|
2022-01-21 09:13:48 +00:00
|
|
|
elseif(CONFIG_ULP_COPROC_TYPE_RISCV)
|
2021-12-23 06:12:47 +00:00
|
|
|
list(APPEND srcs
|
2022-02-28 10:12:28 +00:00
|
|
|
"ulp_riscv/ulp_riscv.c"
|
2022-08-03 05:59:44 +00:00
|
|
|
"ulp_riscv/ulp_riscv_lock.c"
|
2022-08-09 13:46:14 +00:00
|
|
|
"ulp_riscv/ulp_riscv_i2c.c")
|
2022-01-21 09:13:48 +00:00
|
|
|
|
|
|
|
list(APPEND includes
|
2022-08-03 05:59:44 +00:00
|
|
|
ulp_riscv/include
|
|
|
|
ulp_riscv/shared/include)
|
2021-12-23 06:12:47 +00:00
|
|
|
endif()
|
2020-12-29 05:20:24 +00:00
|
|
|
endif()
|
2021-12-23 06:12:47 +00:00
|
|
|
|
2023-02-27 09:03:42 +00:00
|
|
|
if(CONFIG_ULP_COPROC_TYPE_LP_CORE)
|
|
|
|
list(APPEND includes
|
|
|
|
ulp_common/include
|
|
|
|
ulp_common/include/${target})
|
|
|
|
|
|
|
|
list(APPEND srcs
|
2023-04-26 05:58:19 +00:00
|
|
|
"lp_core/lp_core.c"
|
|
|
|
"lp_core/shared/ulp_lp_core_memory_shared.c"
|
2023-03-20 15:08:38 +00:00
|
|
|
"lp_core/shared/ulp_lp_core_lp_timer_shared.c"
|
2023-05-22 12:48:15 +00:00
|
|
|
"lp_core/lp_core_i2c.c"
|
|
|
|
"lp_core/lp_core_uart.c")
|
2023-02-27 09:03:42 +00:00
|
|
|
|
|
|
|
list(APPEND includes
|
2023-04-26 05:58:19 +00:00
|
|
|
"lp_core/include"
|
|
|
|
"lp_core/shared/include")
|
2023-02-27 09:03:42 +00:00
|
|
|
endif()
|
|
|
|
|
2021-12-23 06:12:47 +00:00
|
|
|
idf_component_register(SRCS ${srcs}
|
2022-02-28 10:12:28 +00:00
|
|
|
INCLUDE_DIRS ${includes}
|
2022-07-15 04:52:44 +00:00
|
|
|
REQUIRES driver esp_adc)
|