Navigation Menu

Skip to content

Commit

Permalink
cpu/esp_common: enable esp_wifi as default for lwip
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Feb 21, 2020
1 parent 71682bc commit ccae24c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions cpu/esp_common/Makefile.include
Expand Up @@ -7,10 +7,17 @@ FLASH_MODE ?= dout
# SPECIAL module dependencies
# cannot be done in Makefile.dep since Makefile.dep is included too late

# use esp_now as default netdev if no other netdev module is enabled
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
ifeq (,$(filter esp_wifi esp_eth,$(USEMODULE)))
USEMODULE += esp_now
ifneq (,$(filter lwip,$(USEMODULE)))
# for lwip, use esp_wifi as default netdev if no other netdev is enabled
ifeq (,$(filter esp_eth,$(USEMODULE)))
USEMODULE += esp_wifi
endif
else
# otherwise use esp_now as default netdev if no other netdev is enabled
ifeq (,$(filter esp_wifi esp_eth,$(USEMODULE)))
USEMODULE += esp_now
endif
endif
endif

Expand Down

0 comments on commit ccae24c

Please sign in to comment.