examples: use new component registration api

This commit is contained in:
Renz Christian Bagaporo
2019-04-28 15:38:46 +08:00
parent 9eccd7c082
commit 6771eead80
169 changed files with 409 additions and 788 deletions

View File

@@ -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})