1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

cpu/esp: Evaluate esp_[wifi/now] modules with conditional expansion

This commit is contained in:
Leandro Lanzieri 2020-03-10 11:41:21 +01:00
parent 48a62dcc8f
commit ab1f88c69a
No known key found for this signature in database
GPG Key ID: 39607DE6080007A3

View File

@ -88,14 +88,9 @@ ifneq (,$(filter esp_qemu,$(USEMODULE)))
CFLAGS += -DQEMU
endif
# NOTE: These checks can be turned into normal conditionals when #9913 is fixed
# use 32 priority levels if any WiFi interface or the ETH interface is used
ifneq (,$(filter esp_wifi esp_now esp_eth,$(USEMODULE)))
CFLAGS += -DSCHED_PRIO_LEVELS=32
endif
ifneq (,$(filter esp_wifi esp_now esp_eth,$(USEMODULE)))
INCLUDES += -I$(RIOTCPU)/esp_common/esp-wifi
endif
CFLAGS += $(if $(filter esp_wifi_any esp_eth,$(USEMODULE)),-DSCHED_PRIO_LEVELS=32)
# The threads for handling the ESP hardware have the priorities from 2 to 4.
# The priority of lwIP TCPIP thread should be lower than these priorities.