From 32ff37ba645195e08dc87efda0479eecc93fa991 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Mon, 7 Jan 2019 12:00:53 +0100 Subject: [PATCH] cpu/esp8266: inc ets_task stack size for esp_now --- cpu/esp8266/include/cpu_conf.h | 24 ++++++++++++++++++++++++ cpu/esp8266/startup.c | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/cpu/esp8266/include/cpu_conf.h b/cpu/esp8266/include/cpu_conf.h index 0689f174f1566..b9381b77987dc 100644 --- a/cpu/esp8266/include/cpu_conf.h +++ b/cpu/esp8266/include/cpu_conf.h @@ -44,6 +44,18 @@ extern "C" { #define THREAD_STACKSIZE_MAIN (3072) #endif +#ifndef GNRC_PKTDUMP_STACKSIZE +#define GNRC_PKTDUMP_STACKSIZE (THREAD_STACKSIZE_DEFAULT) +#endif + +#ifndef ESP_NOW_STACKSIZE +#define ESP_NOW_STACKSIZE (2560) +#endif + +#ifndef ETS_THREAD_STACKSIZE +#define ETS_THREAD_STACKSIZE (2048) +#endif + #else /* MODULE_ESP_SDK_INT_HANDLING */ #ifndef THREAD_EXTRA_STACKSIZE_PRINTF @@ -59,6 +71,18 @@ extern "C" { #define THREAD_STACKSIZE_MAIN (3072) #endif +#ifndef GNRC_PKTDUMP_STACKSIZE +#define GNRC_PKTDUMP_STACKSIZE (THREAD_STACKSIZE_DEFAULT) +#endif + +#ifndef ESP_NOW_STACKSIZE +#define ESP_NOW_STACKSIZE (2560) +#endif + +#ifndef ETS_THREAD_STACKSIZE +#define ETS_THREAD_STACKSIZE (1536) +#endif + #endif /* MODULE_ESP_SDK_INT_HANDLING */ /** @} */ diff --git a/cpu/esp8266/startup.c b/cpu/esp8266/startup.c index 3f19f3da15315..6a221d5562c98 100644 --- a/cpu/esp8266/startup.c +++ b/cpu/esp8266/startup.c @@ -69,7 +69,7 @@ extern uint8_t _eheap; #define ETS_TASK_PRIORITY (1) /* stack for the ETS task */ -static char ets_task_stack[THREAD_STACKSIZE_DEFAULT]; +static char ets_task_stack[ETS_THREAD_STACKSIZE]; /* ETS task code */ extern void *ets_task_func(void *arg);