kopia lustrzana https://github.com/espressif/esp-idf
task priority: modify lwip/wifi/event task priority
1. Modify lwip core task priority to configMAX_PRIORITIES-7 2. Modify wifi startup task priority to configMAX_PRIORITIES-7 3. Modify event task priority to configMAX_PRIORITIES-4pull/21/head
rodzic
058a411786
commit
56a684d9eb
|
@ -359,7 +359,7 @@ esp_err_t esp_event_init(system_event_cb_t cb, void *ctx)
|
||||||
|
|
||||||
g_event_handler = xQueueCreate(CONFIG_WIFI_ENENT_QUEUE_SIZE, sizeof(system_event_t));
|
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;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ esp_err_t esp_wifi_startup(wifi_startup_cb_t cb, void *ctx)
|
||||||
startup_cb = cb;
|
startup_cb = cb;
|
||||||
startup_ctx = ctx;
|
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;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -330,7 +330,7 @@ extern unsigned char misc_prof_get_tcp_snd_buf(void);
|
||||||
* The priority value itself is platform-dependent, but is passed to
|
* The priority value itself is platform-dependent, but is passed to
|
||||||
* sys_thread_new() when the thread is created.
|
* 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
|
* TCPIP_MBOX_SIZE: The mailbox size for the tcpip thread messages
|
||||||
|
|
Ładowanie…
Reference in New Issue