It turned out that esp_event was adding extra complexity to the code base and it was completely unnecessary. So it has been removed from the component completely. The actions are now executed directly in the `relay_chn_distpacth_cmd()` and `relay_chn_tilt_dispatch_cmd()` functions. This change has simplified the component as well as reduced the memory footprint. Fixes #1084, refs #1083
27 lines
707 B
CMake
27 lines
707 B
CMake
set(include_dirs "include")
|
|
set(priv_include_dirs "private_include")
|
|
|
|
set(srcs "src/relay_chn_core.c"
|
|
"src/relay_chn_output.c"
|
|
"src/relay_chn_run_info.c")
|
|
|
|
if(CONFIG_RELAY_CHN_ENABLE_TILTING)
|
|
list(APPEND srcs "src/relay_chn_tilt.c")
|
|
endif()
|
|
|
|
if(CONFIG_RELAY_CHN_COUNT GREATER 1)
|
|
list(APPEND srcs "src/relay_chn_ctl_multi.c")
|
|
else()
|
|
list(APPEND srcs "src/relay_chn_ctl_single.c")
|
|
endif()
|
|
|
|
if(CONFIG_RELAY_CHN_NVS)
|
|
list(APPEND srcs "src/relay_chn_nvs.c")
|
|
endif()
|
|
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS ${include_dirs}
|
|
PRIV_INCLUDE_DIRS ${priv_include_dirs}
|
|
REQUIRES driver esp_timer nvs_flash)
|