summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-02-18 16:22:50 +0700
committerGitHub <[email protected]>2022-02-18 16:22:50 +0700
commit4612332af75e7e807b766b73e092d0d87a075392 (patch)
tree3f28f8f08334490e1c2e683dd4103bcfb0fe39f8 /examples/device
parent553767cc8a1948dda53ca1b3cc8d9e2bd21ca3e7 (diff)
parent52645fcc1b6f00d4bf6b211a5425addf7d3a1e8c (diff)
Merge pull request #1331 from hathach/fix-esp-build
fix build with latest esp idf
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/cdc_msc_freertos/src/CMakeLists.txt4
-rw-r--r--examples/device/hid_composite_freertos/src/CMakeLists.txt4
2 files changed, 8 insertions, 0 deletions
diff --git a/examples/device/cdc_msc_freertos/src/CMakeLists.txt b/examples/device/cdc_msc_freertos/src/CMakeLists.txt
index 93ae0686a..9216e2b49 100644
--- a/examples/device/cdc_msc_freertos/src/CMakeLists.txt
+++ b/examples/device/cdc_msc_freertos/src/CMakeLists.txt
@@ -13,6 +13,10 @@ target_include_directories(${COMPONENT_TARGET} PUBLIC
"${TOP}/src"
)
+target_compile_definitions(${COMPONENT_TARGET} PUBLIC
+ ESP_PLATFORM
+)
+
target_sources(${COMPONENT_TARGET} PUBLIC
"${TOP}/src/tusb.c"
"${TOP}/src/common/tusb_fifo.c"
diff --git a/examples/device/hid_composite_freertos/src/CMakeLists.txt b/examples/device/hid_composite_freertos/src/CMakeLists.txt
index 6f156379f..5d9fc74d3 100644
--- a/examples/device/hid_composite_freertos/src/CMakeLists.txt
+++ b/examples/device/hid_composite_freertos/src/CMakeLists.txt
@@ -13,6 +13,10 @@ target_include_directories(${COMPONENT_TARGET} PUBLIC
"${TOP}/src"
)
+target_compile_definitions(${COMPONENT_TARGET} PUBLIC
+ ESP_PLATFORM
+)
+
target_sources(${COMPONENT_TARGET} PUBLIC
"${TOP}/src/tusb.c"
"${TOP}/src/common/tusb_fifo.c"