g_event_handler = xQueueCreate(CONFIG_WIFI_ENENT_QUEUE_SIZE, sizeof(system_event_t));
- xTaskCreatePinnedToCore(esp_system_event_task, "eventTask", CONFIG_WIFI_EVENT_TASK_STACK_SIZE, NULL, 5, NULL, 0); // TODO: rearrange task priority
+ xTaskCreatePinnedToCore(esp_system_event_task, "eventTask", CONFIG_WIFI_EVENT_TASK_STACK_SIZE, NULL, configMAX_PRIORITIES-4, NULL, 0);
return ESP_OK;
}
startup_cb = cb;
startup_ctx = ctx;
- xTaskCreatePinnedToCore(esp_wifi_task, "wifiTask", 4096, NULL, 5, NULL, 0);// TODO: rearrange task priority
+ xTaskCreatePinnedToCore(esp_wifi_task, "wifiTask", 4096, NULL, configMAX_PRIORITIES-7, NULL, 0);
return ESP_OK;
}
* The priority value itself is platform-dependent, but is passed to
* sys_thread_new() when the thread is created.
*/
-#define TCPIP_THREAD_PRIO (configMAX_PRIORITIES-5)
+#define TCPIP_THREAD_PRIO (configMAX_PRIORITIES-7)
/**
* TCPIP_MBOX_SIZE: The mailbox size for the tcpip thread messages