diff options
| author | hathach <[email protected]> | 2020-04-08 23:20:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-08 23:20:05 +0700 |
| commit | bfde988af3d848af7a5c29dee46030aa73630d43 (patch) | |
| tree | 950c6a53cbe5deb96b8b05fe29558cf6f4e94ee8 /examples | |
| parent | 880595433ce6b75428dca30b72b41d865a4b89f4 (diff) | |
update cmake
Diffstat (limited to 'examples')
4 files changed, 4 insertions, 0 deletions
diff --git a/examples/device/cdc_msc_freertos/CMakeLists.txt b/examples/device/cdc_msc_freertos/CMakeLists.txt index 2f1f6a950..746270f10 100644 --- a/examples/device/cdc_msc_freertos/CMakeLists.txt +++ b/examples/device/cdc_msc_freertos/CMakeLists.txt @@ -10,5 +10,6 @@ set(TOP "../../..") get_filename_component(TOP "${TOP}" REALPATH) include($ENV{IDF_PATH}/tools/cmake/project.cmake) +set(SUPPORTED_TARGETS esp32s2) project(cdc_msc_freertos) diff --git a/examples/device/cdc_msc_freertos/src/CMakeLists.txt b/examples/device/cdc_msc_freertos/src/CMakeLists.txt index 7f8eeca17..c757852a9 100644 --- a/examples/device/cdc_msc_freertos/src/CMakeLists.txt +++ b/examples/device/cdc_msc_freertos/src/CMakeLists.txt @@ -4,6 +4,7 @@ idf_component_register(SRCS "main.c" "usb_descriptors.c" "msc_disk.c" target_compile_options(${COMPONENT_TARGET} PUBLIC "-DCFG_TUSB_MCU=OPT_MCU_ESP32S2" + "-DCFG_TUSB_OS=OPT_OS_FREERTOS" ) idf_component_get_property( FREERTOS_ORIG_INCLUDE_PATH freertos ORIG_INCLUDE_PATH) diff --git a/examples/device/hid_composite_freertos/CMakeLists.txt b/examples/device/hid_composite_freertos/CMakeLists.txt index ebc087b22..e5c265bf8 100644 --- a/examples/device/hid_composite_freertos/CMakeLists.txt +++ b/examples/device/hid_composite_freertos/CMakeLists.txt @@ -10,5 +10,6 @@ set(TOP "../../..") get_filename_component(TOP "${TOP}" REALPATH) include($ENV{IDF_PATH}/tools/cmake/project.cmake) +set(SUPPORTED_TARGETS esp32s2) project(hid_composite_freertos) diff --git a/examples/device/hid_composite_freertos/src/CMakeLists.txt b/examples/device/hid_composite_freertos/src/CMakeLists.txt index c674873b2..9e914e419 100644 --- a/examples/device/hid_composite_freertos/src/CMakeLists.txt +++ b/examples/device/hid_composite_freertos/src/CMakeLists.txt @@ -4,6 +4,7 @@ idf_component_register(SRCS "main.c" "usb_descriptors.c" target_compile_options(${COMPONENT_TARGET} PUBLIC "-DCFG_TUSB_MCU=OPT_MCU_ESP32S2" + "-DCFG_TUSB_OS=OPT_OS_FREERTOS" ) idf_component_get_property( FREERTOS_ORIG_INCLUDE_PATH freertos ORIG_INCLUDE_PATH) |
