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

boards/nrf52: resolve netdev dependencies for all family members

This commit is contained in:
Benjamin Valentin 2020-11-05 20:58:29 +01:00
parent fea9e68b88
commit bfb7cbfa4d
4 changed files with 12 additions and 7 deletions

View File

@ -2,10 +2,10 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_nrf_temperature USEMODULE += saul_nrf_temperature
endif endif
ifneq (,$(findstring nrf52832, $(CPU_MODEL))) ifneq (,$(filter nrf52811xxaa nrf52820xxaa rf52833xxaa nrf52840xxaa,$(CPU_MODEL)))
# include common nrf52832 dependencies # include dependencies for 802.15.4 radio
include $(RIOTBOARD)/common/nrf52/nrf52832/Makefile.dep include $(RIOTBOARD)/common/nrf52/Makefile.nrf802154.dep
else ifneq (,$(findstring nrf52840, $(CPU_MODEL))) else
# include common nrf52840 dependencies # include dependencies for BLE
include $(RIOTBOARD)/common/nrf52/nrf52840/Makefile.dep include $(RIOTBOARD)/common/nrf52/Makefile.nimble.dep
endif endif

View File

@ -1,5 +1,5 @@
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE))) ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
ifeq (,$(filter nrfmin,$(USEMODULE))) ifeq (,$(filter nrfmin nrf802154,$(USEMODULE)))
USEMODULE += nimble_netif USEMODULE += nimble_netif
endif endif
endif endif

View File

@ -0,0 +1,5 @@
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
ifeq (,$(filter nimble_% nrf802154,$(USEMODULE)))
USEMODULE += nrfmin
endif
endif