touch_sensor: make touch_element compile on esp32s3

Closes: https://github.com/espressif/esp-idf/issues/9292
This commit is contained in:
wangyuanze
2022-07-28 12:19:07 +08:00
parent 6658b7eb0a
commit 4a617e459a
8 changed files with 22 additions and 31 deletions

View File

@@ -1,6 +1,3 @@
if(IDF_TARGET STREQUAL "esp32s2")
idf_component_register(SRCS "touch_button_example_main.c"
INCLUDE_DIRS ".")
else()
message(FATAL_ERROR "Touch button example only available on esp32s2 now")
endif()
idf_component_register(SRCS "touch_button_example_main.c"
INCLUDE_DIRS "."
PRIV_REQUIRES touch_element)

View File

@@ -1,6 +1,3 @@
if(IDF_TARGET STREQUAL "esp32s2")
idf_component_register(SRCS "waterproof_example_main.c"
INCLUDE_DIRS ".")
else()
message(FATAL_ERROR "Touch element waterproof example only available on esp32s2 now")
endif()
INCLUDE_DIRS "."
PRIV_REQUIRES touch_element)

View File

@@ -1,6 +1,3 @@
if(IDF_TARGET STREQUAL "esp32s2")
idf_component_register(SRCS "touch_elements_example_main.c"
INCLUDE_DIRS ".")
else()
message(FATAL_ERROR "Touch elements combination example only available on esp32s2 now")
endif()
idf_component_register(SRCS "touch_elements_example_main.c"
INCLUDE_DIRS "."
PRIV_REQUIRES touch_element)

View File

@@ -1,6 +1,3 @@
if(IDF_TARGET STREQUAL "esp32s2")
idf_component_register(SRCS "touch_matrix_example_main.c"
INCLUDE_DIRS ".")
else()
message(FATAL_ERROR "Touch matrix example only available on esp32s2 now")
endif()
idf_component_register(SRCS "touch_matrix_example_main.c"
INCLUDE_DIRS "."
PRIV_REQUIRES touch_element)

View File

@@ -1,6 +1,3 @@
if(IDF_TARGET STREQUAL "esp32s2")
idf_component_register(SRCS "touch_slider_example_main.c"
INCLUDE_DIRS ".")
else()
message(FATAL_ERROR "Touch slider example only available on esp32s2 now")
endif()
idf_component_register(SRCS "touch_slider_example_main.c"
INCLUDE_DIRS "."
PRIV_REQUIRES touch_element)