mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 00:56:38 +08:00
feat(task): Change all tasks size 4 times the original
This commit is contained in:
@ -185,7 +185,7 @@ void uart_init(void)
|
||||
|
||||
xQueueUart = xQueueCreate(32, sizeof(os_event_t));
|
||||
|
||||
xTaskCreate(uart_task, (uint8_t const*)"uTask", 512, NULL, tskIDLE_PRIORITY + 2, &xUartTaskHandle);
|
||||
xTaskCreate(uart_task, (uint8_t const*)"uTask", 2048, NULL, tskIDLE_PRIORITY + 2, &xUartTaskHandle);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
gwen:
|
||||
crypto: 8943c89
|
||||
espnow: 8943c89
|
||||
core: 15348a7
|
||||
net80211: 68f6a7c
|
||||
pp: bdb3c08
|
||||
core: fdd8880
|
||||
net80211: fdd8880
|
||||
pp: fdd8880
|
||||
pwm: 0181338
|
||||
smartconfig:9ec59b5
|
||||
wpa: 8943c89
|
||||
wps: 8943c89
|
||||
wps: fdd8880
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -98,7 +98,7 @@ esp_err_t esp_event_loop_init(system_event_cb_t cb, void *ctx)
|
||||
s_event_queue = wifi_queue_create(32, sizeof(system_event_t));
|
||||
if(s_event_queue == NULL)
|
||||
return ESP_ERR_NO_MEM;
|
||||
if(wifi_task_create(esp_event_loop_task, "esp_event_loop_task", 512, NULL, 2) == NULL) {
|
||||
if(wifi_task_create(esp_event_loop_task, "esp_event_loop_task", 2048, NULL, 2) == NULL) {
|
||||
return ESP_ERR_NO_MEM;
|
||||
}
|
||||
s_event_handler_cb = cb;
|
||||
|
@ -103,7 +103,7 @@ void call_user_start(void)
|
||||
|
||||
wifi_os_init();
|
||||
|
||||
assert(wifi_task_create(user_init_entry, "uiT", 512, NULL, wifi_task_get_max_priority()) != NULL);
|
||||
assert(wifi_task_create(user_init_entry, "uiT", 2048, NULL, wifi_task_get_max_priority()) != NULL);
|
||||
|
||||
wifi_os_start();
|
||||
}
|
||||
|
@ -86,7 +86,7 @@
|
||||
#define configCPU_CLOCK_HZ ( ( unsigned long ) 80000000 )
|
||||
#define configTICK_RATE_HZ ( ( portTickType ) 100 )
|
||||
#define configMAX_PRIORITIES 15
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short )176 )
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 768 )
|
||||
//#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 17 * 1024 ) )
|
||||
#define configMAX_TASK_NAME_LEN ( 16 )
|
||||
#define configUSE_TRACE_FACILITY 0
|
||||
@ -106,7 +106,7 @@
|
||||
#if configUSE_TIMERS
|
||||
#define configTIMER_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )
|
||||
#define configTIMER_QUEUE_LENGTH (10)
|
||||
#define configTIMER_TASK_STACK_DEPTH ( ( unsigned short ) 512 )
|
||||
#define configTIMER_TASK_STACK_DEPTH ( ( unsigned short ) 2048 )
|
||||
#endif
|
||||
|
||||
/* Co-routine definitions. */
|
||||
|
@ -387,8 +387,8 @@ endmenu # UDP
|
||||
|
||||
config TCPIP_TASK_STACK_SIZE
|
||||
int "TCP/IP Task Stack Size"
|
||||
default 512
|
||||
range 512 2048
|
||||
default 2048
|
||||
range 2048 8192
|
||||
help
|
||||
Configure TCP/IP task stack size, used by LWIP to process multi-threaded TCP/IP operations.
|
||||
Setting this stack too small will result in stack overflow crashes.
|
||||
|
@ -188,5 +188,5 @@ void app_main()
|
||||
{
|
||||
ESP_ERROR_CHECK( nvs_flash_init() );
|
||||
initialise_wifi();
|
||||
xTaskCreate(&http_get_task, "http_get_task", 4096, NULL, 5, NULL);
|
||||
xTaskCreate(&http_get_task, "http_get_task", 16384, NULL, 5, NULL);
|
||||
}
|
||||
|
@ -336,5 +336,5 @@ void app_main(void)
|
||||
{
|
||||
ESP_ERROR_CHECK( nvs_flash_init() );
|
||||
initialise_wifi();
|
||||
xTaskCreate(&https_get_task, "https_get_task", 2048, NULL, 5, NULL);
|
||||
xTaskCreate(&https_get_task, "https_get_task", 8192, NULL, 5, NULL);
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ extern const uint8_t server_root_cert_pem_end[] asm("_binary_server_root_cert_
|
||||
"\r\n"
|
||||
|
||||
#define WOLFSSL_DEMO_THREAD_NAME "wolfssl_client"
|
||||
#define WOLFSSL_DEMO_THREAD_STACK_WORDS 2048
|
||||
#define WOLFSSL_DEMO_THREAD_STACK_WORDS 8192
|
||||
#define WOLFSSL_DEMO_THREAD_PRORIOTY 6
|
||||
|
||||
#define WOLFSSL_DEMO_SNTP_SERVERS "pool.ntp.org"
|
||||
|
@ -51,7 +51,7 @@ const int CONNECTED_BIT = 1<<0;
|
||||
#define MQTT_PORT 1883 /* MQTT Port*/
|
||||
|
||||
#define MQTT_CLIENT_THREAD_NAME "mqtt_client_thread"
|
||||
#define MQTT_CLIENT_THREAD_STACK_WORDS 2048
|
||||
#define MQTT_CLIENT_THREAD_STACK_WORDS 8192
|
||||
#define MQTT_CLIENT_THREAD_PRIO 8
|
||||
|
||||
static const char *TAG = "example";
|
||||
|
@ -327,5 +327,5 @@ void app_main(void)
|
||||
{
|
||||
ESP_ERROR_CHECK( nvs_flash_init() );
|
||||
initialise_wifi();
|
||||
xTaskCreate(&openssl_client_task, "openssl_client", 2048, NULL, 6, NULL);
|
||||
xTaskCreate(&openssl_client_task, "openssl_client", 8192, NULL, 6, NULL);
|
||||
}
|
||||
|
@ -255,5 +255,5 @@ void app_main(void)
|
||||
{
|
||||
ESP_ERROR_CHECK(nvs_flash_init());
|
||||
initialise_wifi();
|
||||
xTaskCreate(&openssl_task, "openssl_task", 2048, NULL, 5, NULL);
|
||||
xTaskCreate(&openssl_task, "openssl_task", 8192, NULL, 5, NULL);
|
||||
}
|
||||
|
@ -336,5 +336,5 @@ void app_main(void)
|
||||
{
|
||||
ESP_ERROR_CHECK( nvs_flash_init() );
|
||||
initialise_wifi();
|
||||
xTaskCreate(&openssl_server_task, "openssl_server", 2048, NULL, 6, NULL);
|
||||
xTaskCreate(&openssl_server_task, "openssl_server", 8192, NULL, 6, NULL);
|
||||
}
|
||||
|
@ -210,6 +210,6 @@ void user_init(void)
|
||||
/* need to set opmode before you set config */
|
||||
wifi_set_opmode(STATION_MODE);
|
||||
|
||||
xTaskCreate(smartconfig_task, "smartconfig_task", 256, NULL, 2, NULL);
|
||||
xTaskCreate(smartconfig_task, "smartconfig_task", 1024, NULL, 2, NULL);
|
||||
}
|
||||
|
||||
|
@ -52,5 +52,5 @@ static void wps_task(void* pvParameters)
|
||||
|
||||
void user_init(void)
|
||||
{
|
||||
xTaskCreate(wps_task, "wps_task", 1024, NULL, 4, NULL);
|
||||
xTaskCreate(wps_task, "wps_task", 4096, NULL, 4, NULL);
|
||||
}
|
||||
|
@ -19,5 +19,5 @@ void unityTask(void *pvParameters)
|
||||
void app_main(void)
|
||||
{
|
||||
wifi_station_set_auto_connect(false);
|
||||
xTaskCreate(unityTask, "unityTask", 2048, NULL, UNITY_FREERTOS_PRIORITY, NULL);
|
||||
xTaskCreate(unityTask, "unityTask", 8192, NULL, UNITY_FREERTOS_PRIORITY, NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user