summaryrefslogtreecommitdiff
path: root/examples/device/video_capture/src/main.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-07-02 15:32:12 +0700
committerhathach <[email protected]>2025-07-02 15:32:12 +0700
commit0388700ad7c0fc8565457a56d7e7bd5744ac0d1d (patch)
tree55ac857d737e755cbb5c14d3ab1d5010ddc0ccc2 /examples/device/video_capture/src/main.c
parent4579b4f8255a5ed06e276978474fab7c7567445a (diff)
update esp build, replace TUSB_MCU_VENDOR_ESPRESSIF by ESP_PLATFORM
Diffstat (limited to 'examples/device/video_capture/src/main.c')
-rw-r--r--examples/device/video_capture/src/main.c6
1 files changed, 3 insertions, 3 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
}