From 9facce8c02a18257fbf77a23c537c4dbcdad6749 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Thu, 17 Oct 2019 13:46:04 +0200 Subject: [PATCH] cpu/esp8266: use default number of priority levels If the WiFi module is used, a number of high priority tasks is created. To void priority collisions with netdev drivers, the number of priorities SCHED_PRIO_LEVELS has to be increased to 32. But in other cases, the default number should be used, also to keep automatic tests working. --- cpu/esp8266/Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/esp8266/Makefile.include b/cpu/esp8266/Makefile.include index e66b28d57a..077b71a75c 100644 --- a/cpu/esp8266/Makefile.include +++ b/cpu/esp8266/Makefile.include @@ -21,6 +21,7 @@ endif ifneq (, $(filter esp_now esp_wifi, $(USEMODULE))) $(eval GNRC_NETIF_NUMOF=$(shell echo $$(($(GNRC_NETIF_NUMOF)+1)))) + CFLAGS += -DSCHED_PRIO_LEVELS=32 USEMODULE += esp_wifi_any USEMODULE += netopt USEMODULE += xtimer @@ -94,8 +95,7 @@ INCLUDES += -I$(ESP8266_SDK_DIR)/components/heap/port/esp8266/include INCLUDES += -I$(ESP8266_SDK_DIR)/components/nvs_flash/include INCLUDES += -I$(ESP8266_SDK_DIR)/components/spi_flash/include -CFLAGS += -DESP_OPEN_SDK -DSCHED_PRIO_LEVELS=32 -DDEVELHELP -CFLAGS += -D__ESP_FILE__=__FILE__ +CFLAGS += -D__ESP_FILE__=__FILE__ -DDEVELHELP CFLAGS += -Wno-unused-parameter -Wformat=0 CFLAGS += -mlongcalls -mtext-section-literals -fstrict-volatile-bitfields CFLAGS += -fdata-sections -ffunction-sections -fzero-initialized-in-bss