diff options
| author | hathach <[email protected]> | 2025-07-03 17:07:52 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-07-03 17:07:52 +0700 |
| commit | 970c8b744e2b1b84864690ad7b0129d814528618 (patch) | |
| tree | c8f3879793f169a5b32e770a032630d8427560b8 /examples/device/audio_test_freertos/src | |
| parent | ea02e929b4daafb28be30b08609a6f68f64e2a0d (diff) | |
| parent | 9d872d529ffa0aa53e735b24543c26156798fc64 (diff) | |
Merge branch 'master' into fork/HiFiPhile/stm32_cache
Diffstat (limited to 'examples/device/audio_test_freertos/src')
| -rw-r--r-- | examples/device/audio_test_freertos/src/main.c | 8 | ||||
| -rw-r--r-- | examples/device/audio_test_freertos/src/tusb_config.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/device/audio_test_freertos/src/main.c b/examples/device/audio_test_freertos/src/main.c index c5143c3fc..3831be87f 100644 --- a/examples/device/audio_test_freertos/src/main.c +++ b/examples/device/audio_test_freertos/src/main.c @@ -38,7 +38,7 @@ #include "bsp/board_api.h" #include "tusb.h" -#if TUSB_MCU_VENDOR_ESPRESSIF +#ifdef ESP_PLATFORM // ESP-IDF need "freertos/" prefix in include path. // CFG_TUSB_OS_INC_PATH should be defined accordingly. #include "freertos/FreeRTOS.h" @@ -132,15 +132,15 @@ int main(void) xTaskCreate(usb_device_task, "usbd", USBD_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL); #endif - // skip starting scheduler (and return) for ESP32-S2 or ESP32-S3 - #if !TUSB_MCU_VENDOR_ESPRESSIF + // only start scheduler for non-espressif mcu + #ifndef ESP_PLATFORM vTaskStartScheduler(); #endif return 0; } -#if TUSB_MCU_VENDOR_ESPRESSIF +#ifdef ESP_PLATFORM void app_main(void) { main(); } diff --git a/examples/device/audio_test_freertos/src/tusb_config.h b/examples/device/audio_test_freertos/src/tusb_config.h index 61c5cbb96..0fb2106e2 100644 --- a/examples/device/audio_test_freertos/src/tusb_config.h +++ b/examples/device/audio_test_freertos/src/tusb_config.h @@ -59,7 +59,7 @@ extern "C" { #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 |
