mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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)))
|
||||
$(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
|
||||
|
Loading…
Reference in New Issue
Block a user