feat(esp8266): Add uiT task stack configuration

This commit is contained in:
Dong Heng
2018-09-13 13:35:27 +08:00
parent 04078eda5d
commit 472fa796ed
2 changed files with 9 additions and 1 deletions

View File

@ -63,6 +63,14 @@ config CONSOLE_UART_SWAP_IO
help
Enable this option, UART0's I/O pins are swaped: TXD <-> RTS, RTX <-> CTS.
config MAIN_TASK_STACK_SIZE
int "Main task stack size"
default 3584
help
Configure the "main task" stack size. This is the stack of the task
which calls app_main(). If app_main() returns then this task is deleted
and its stack memory is freed.
endmenu
menu WIFI

View File

@ -114,7 +114,7 @@ void call_user_start(size_t start_addr)
wifi_os_init();
assert(wifi_task_create(user_init_entry, "uiT", 2048, NULL, wifi_task_get_max_priority()) != NULL);
assert(wifi_task_create(user_init_entry, "uiT", CONFIG_MAIN_TASK_STACK_SIZE, NULL, wifi_task_get_max_priority()) != NULL);
wifi_os_start();
}