summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-02-18 13:07:21 +0700
committerhathach <[email protected]>2022-02-18 13:07:21 +0700
commit52645fcc1b6f00d4bf6b211a5425addf7d3a1e8c (patch)
treea328f504635274fb688f9e1932a26e32fb471b69 /examples/device
parentfcca8bb4ca219b2b43169997a5a00d65bc12c877 (diff)
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"