Skip to content

Commit

Permalink
cpu/esp8266: inc ets_task stack size for esp_now
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Jan 7, 2019
1 parent 6694610 commit 32ff37b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions cpu/esp8266/include/cpu_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 */
/** @} */

Expand Down
2 changes: 1 addition & 1 deletion cpu/esp8266/startup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 32ff37b

Please sign in to comment.