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.
This commit is contained in:
parent
afa02044f2
commit
9facce8c02
@ -21,6 +21,7 @@ endif
|
|||||||
|
|
||||||
ifneq (, $(filter esp_now esp_wifi, $(USEMODULE)))
|
ifneq (, $(filter esp_now esp_wifi, $(USEMODULE)))
|
||||||
$(eval GNRC_NETIF_NUMOF=$(shell echo $$(($(GNRC_NETIF_NUMOF)+1))))
|
$(eval GNRC_NETIF_NUMOF=$(shell echo $$(($(GNRC_NETIF_NUMOF)+1))))
|
||||||
|
CFLAGS += -DSCHED_PRIO_LEVELS=32
|
||||||
USEMODULE += esp_wifi_any
|
USEMODULE += esp_wifi_any
|
||||||
USEMODULE += netopt
|
USEMODULE += netopt
|
||||||
USEMODULE += xtimer
|
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/nvs_flash/include
|
||||||
INCLUDES += -I$(ESP8266_SDK_DIR)/components/spi_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__ -DDEVELHELP
|
||||||
CFLAGS += -D__ESP_FILE__=__FILE__
|
|
||||||
CFLAGS += -Wno-unused-parameter -Wformat=0
|
CFLAGS += -Wno-unused-parameter -Wformat=0
|
||||||
CFLAGS += -mlongcalls -mtext-section-literals -fstrict-volatile-bitfields
|
CFLAGS += -mlongcalls -mtext-section-literals -fstrict-volatile-bitfields
|
||||||
CFLAGS += -fdata-sections -ffunction-sections -fzero-initialized-in-bss
|
CFLAGS += -fdata-sections -ffunction-sections -fzero-initialized-in-bss
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user