diff options
| author | Ha Thach <[email protected]> | 2025-07-02 18:15:37 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-02 18:15:37 +0700 |
| commit | 963971c6aa14411f0cc6f0c4f727d199c738e2a5 (patch) | |
| tree | 45124e4246dd415bcab22119fa6b21f9ff363be3 /examples/device/video_capture/src | |
| parent | 0d6cb38163692fa8795d75b8eda9454c579bea4a (diff) | |
| parent | a52e5ce99aa4fba305e5b8639360d5b3990d7475 (diff) | |
Merge pull request #3157 from hathach/update-buildsystem
Update buildsystem
Diffstat (limited to 'examples/device/video_capture/src')
| -rw-r--r-- | examples/device/video_capture/src/main.c | 6 | ||||
| -rw-r--r-- | examples/device/video_capture/src/tusb_config.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/device/video_capture/src/main.c b/examples/device/video_capture/src/main.c index 04d4af4e5..0406279fd 100644 --- a/examples/device/video_capture/src/main.c +++ b/examples/device/video_capture/src/main.c @@ -292,7 +292,7 @@ void led_blinking_task(void* param) { #define BLINKY_STACK_SIZE configMINIMAL_STACK_SIZE #define VIDEO_STACK_SIZE (configMINIMAL_STACK_SIZE*4) -#if TUSB_MCU_VENDOR_ESPRESSIF +#ifdef ESP_PLATFORM #define USBD_STACK_SIZE 4096 int main(void); void app_main(void) { @@ -351,8 +351,8 @@ void freertos_init_task(void) { xTaskCreate(video_task, "video", VIDEO_STACK_SZIE, NULL, configMAX_PRIORITIES - 2, 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/device/video_capture/src/tusb_config.h b/examples/device/video_capture/src/tusb_config.h index 6dbd6f2a5..4ba86ca65 100644 --- a/examples/device/video_capture/src/tusb_config.h +++ b/examples/device/video_capture/src/tusb_config.h @@ -58,7 +58,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 |
