mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
examples: use new component registration api
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
# Set usual component variables
|
||||
set(COMPONENT_SRCS "ulp_adc_example_main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS "")
|
||||
set(COMPONENT_REQUIRES soc nvs_flash ulp driver)
|
||||
|
||||
register_component()
|
||||
|
||||
idf_component_register(SRCS "ulp_adc_example_main.c"
|
||||
INCLUDE_DIRS ""
|
||||
REQUIRES soc nvs_flash ulp driver)
|
||||
#
|
||||
# ULP support additions to component CMakeLists.txt.
|
||||
#
|
||||
@@ -22,4 +18,4 @@ set(ulp_exp_dep_srcs "ulp_adc_example_main.c")
|
||||
#
|
||||
# 4. Call function to build ULP binary and embed in project using the argument
|
||||
# values above.
|
||||
ulp_embed_binary(${ulp_app_name} ${ulp_s_sources} ${ulp_exp_dep_srcs})
|
||||
ulp_embed_binary(${ulp_app_name} ${ulp_s_sources} ${ulp_exp_dep_srcs})
|
||||
|
Reference in New Issue
Block a user