summaryrefslogtreecommitdiff
path: root/examples/device/cdc_msc_freertos
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-07-02 18:15:37 +0700
committerGitHub <[email protected]>2025-07-02 18:15:37 +0700
commit963971c6aa14411f0cc6f0c4f727d199c738e2a5 (patch)
tree45124e4246dd415bcab22119fa6b21f9ff363be3 /examples/device/cdc_msc_freertos
parent0d6cb38163692fa8795d75b8eda9454c579bea4a (diff)
parenta52e5ce99aa4fba305e5b8639360d5b3990d7475 (diff)
Merge pull request #3157 from hathach/update-buildsystem
Update buildsystem
Diffstat (limited to 'examples/device/cdc_msc_freertos')
-rw-r--r--examples/device/cdc_msc_freertos/src/main.c8
-rw-r--r--examples/device/cdc_msc_freertos/src/tusb_config.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/device/cdc_msc_freertos/src/main.c b/examples/device/cdc_msc_freertos/src/main.c
index 4dada9801..6fe964153 100644
--- a/examples/device/cdc_msc_freertos/src/main.c
+++ b/examples/device/cdc_msc_freertos/src/main.c
@@ -30,7 +30,7 @@
#include "bsp/board_api.h"
#include "tusb.h"
-#if TUSB_MCU_VENDOR_ESPRESSIF
+#ifdef ESP_PLATFORM
#define USBD_STACK_SIZE 4096
#else
// Increase stack size when debug log is enabled
@@ -91,15 +91,15 @@ int main(void) {
xTaskCreate(cdc_task, "cdc", CDC_STACK_SZIE, NULL, configMAX_PRIORITIES - 2, NULL);
#endif
-#if !TUSB_MCU_VENDOR_ESPRESSIF
- // skip starting scheduler (and return) for ESP32-S2 or ESP32-S3
+#ifndef ESP_PLATFORM
+ // only start scheduler for non-espressif mcu
vTaskStartScheduler();
#endif
return 0;
}
-#if TUSB_MCU_VENDOR_ESPRESSIF
+#ifdef ESP_PLATFORM
void app_main(void) {
main();
}
diff --git a/examples/device/cdc_msc_freertos/src/tusb_config.h b/examples/device/cdc_msc_freertos/src/tusb_config.h
index c3f2f7fb5..71a0e985a 100644
--- a/examples/device/cdc_msc_freertos/src/tusb_config.h
+++ b/examples/device/cdc_msc_freertos/src/tusb_config.h
@@ -59,7 +59,7 @@
#endif
// Espressif IDF requires "freertos/" prefix in include path
-#if TUSB_MCU_VENDOR_ESPRESSIF
+#ifdef ESP_PLATFORM
#define CFG_TUSB_OS_INC_PATH freertos/
#endif