diff --git a/src/esp_compat.h b/src/esp_compat.h index 59dcc38..3966f72 100644 --- a/src/esp_compat.h +++ b/src/esp_compat.h @@ -30,7 +30,7 @@ typedef QueueHandle_t queue_t; #define queue_is_empty(a) (uxQueueMessagesWaiting(*(a)) == 0) #define queue_try_remove(a,b) xQueueReceive(*(a), b, 0) extern TaskHandle_t hcore0, hcore1; -#define multicore_launch_core1(a) xTaskCreate((void(*)(void *))a, "core1", 4096*5, NULL, CONFIG_TINYUSB_TASK_PRIORITY + 2, &hcore1) +#define multicore_launch_core1(a) xTaskCreate((void(*)(void *))a, "core1", 4096*ITF_TOTAL, NULL, CONFIG_TINYUSB_TASK_PRIORITY + 2, &hcore1) #define multicore_reset_core1() do { if (hcore1) { eTaskState e = eTaskGetState(hcore1); if (e <= eSuspended) { vTaskDelete(hcore1); }} }while(0) #define sleep_ms(a) vTaskDelay(a / portTICK_PERIOD_MS) static inline uint32_t board_millis(void) { diff --git a/src/main.c b/src/main.c index ad4c94f..ad8866c 100644 --- a/src/main.c +++ b/src/main.c @@ -440,7 +440,7 @@ int main(void) { #endif #ifdef ESP_PLATFORM - xTaskCreate(core0_loop, "core0", 4096*5, NULL, CONFIG_TINYUSB_TASK_PRIORITY + 1, &hcore0); + xTaskCreate(core0_loop, "core0", 4096*ITF_TOTAL, NULL, CONFIG_TINYUSB_TASK_PRIORITY + 1, &hcore0); #else core0_loop(); #endif