summaryrefslogtreecommitdiff
path: root/examples/device/board_test/src
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2021-04-20 20:15:54 +0200
committerReinhard Panhuber <[email protected]>2021-04-20 20:15:54 +0200
commit705753f448f5cf3b24a6fa49ec02fe1ab0b400aa (patch)
tree49533426ece7ecec32793b48f4e0103c621b07df /examples/device/board_test/src
parentc7c11b181c05136a1c077dc445f422c7e17edc02 (diff)
parentc5f440a6aa39a09487000e7ce408d252dc7641f0 (diff)
Merge remote-tracking branch 'upstream/master' into uac2_fix_cs_as_int_alt_set_0
Diffstat (limited to 'examples/device/board_test/src')
-rw-r--r--examples/device/board_test/src/CMakeLists.txt11
-rw-r--r--examples/device/board_test/src/main.c2
2 files changed, 7 insertions, 6 deletions
diff --git a/examples/device/board_test/src/CMakeLists.txt b/examples/device/board_test/src/CMakeLists.txt
index e59661069..e4e1f4e9a 100644
--- a/examples/device/board_test/src/CMakeLists.txt
+++ b/examples/device/board_test/src/CMakeLists.txt
@@ -1,12 +1,13 @@
-# FAMILY = "esp32s2"
+# FAMILY = esp32sx
idf_component_register(SRCS "main.c"
INCLUDE_DIRS "."
REQUIRES freertos soc)
-target_compile_options(${COMPONENT_TARGET} PUBLIC
- "-DCFG_TUSB_MCU=OPT_MCU_ESP32S2"
- "-DCFG_TUSB_OS=OPT_OS_FREERTOS"
-)
+file(TO_NATIVE_PATH "${TOP}/hw/bsp/${FAMILY}/boards/${BOARD}/board.cmake" board_cmake)
+
+if(EXISTS ${board_cmake})
+ include(${board_cmake})
+endif()
idf_component_get_property( FREERTOS_ORIG_INCLUDE_PATH freertos ORIG_INCLUDE_PATH)
target_include_directories(${COMPONENT_TARGET} PUBLIC
diff --git a/examples/device/board_test/src/main.c b/examples/device/board_test/src/main.c
index d94b24650..c77dd5647 100644
--- a/examples/device/board_test/src/main.c
+++ b/examples/device/board_test/src/main.c
@@ -70,7 +70,7 @@ int main(void)
return 0;
}
-#if CFG_TUSB_MCU == OPT_MCU_ESP32S2
+#if CFG_TUSB_MCU == OPT_MCU_ESP32S2 || CFG_TUSB_MCU == OPT_MCU_ESP32S3
void app_main(void)
{
main();