diff options
| author | hathach <[email protected]> | 2025-07-02 15:32:12 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-07-02 15:32:12 +0700 |
| commit | 0388700ad7c0fc8565457a56d7e7bd5744ac0d1d (patch) | |
| tree | 55ac857d737e755cbb5c14d3ab1d5010ddc0ccc2 /examples/host/device_info/src | |
| parent | 4579b4f8255a5ed06e276978474fab7c7567445a (diff) | |
update esp build, replace TUSB_MCU_VENDOR_ESPRESSIF by ESP_PLATFORM
Diffstat (limited to 'examples/host/device_info/src')
| -rw-r--r-- | examples/host/device_info/src/main.c | 8 | ||||
| -rw-r--r-- | examples/host/device_info/src/tusb_config.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/host/device_info/src/main.c b/examples/host/device_info/src/main.c index e924a137b..7189972d6 100644 --- a/examples/host/device_info/src/main.c +++ b/examples/host/device_info/src/main.c @@ -268,7 +268,7 @@ void led_blinking_task(void* param) { #define BLINKY_STACK_SIZE configMINIMAL_STACK_SIZE -#if TUSB_MCU_VENDOR_ESPRESSIF +#ifdef ESP_PLATFORM #define USB_STACK_SIZE 4096 #else // Increase stack size when debug log is enabled @@ -285,7 +285,7 @@ StackType_t usb_stack[USB_STACK_SIZE]; StaticTask_t usb_taskdef; #endif -#if TUSB_MCU_VENDOR_ESPRESSIF +#ifdef ESP_PLATFORM void app_main(void) { main(); } @@ -308,8 +308,8 @@ void init_freertos_task(void) { xTaskCreate(usb_host_task, "usbh", USB_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 } diff --git a/examples/host/device_info/src/tusb_config.h b/examples/host/device_info/src/tusb_config.h index e12970c12..e4ca2528e 100644 --- a/examples/host/device_info/src/tusb_config.h +++ b/examples/host/device_info/src/tusb_config.h @@ -40,7 +40,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 |
