1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +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
endif
ifneq (,$(findstring nrf52832, $(CPU_MODEL)))
# include common nrf52832 dependencies
include $(RIOTBOARD)/common/nrf52/nrf52832/Makefile.dep
else ifneq (,$(findstring nrf52840, $(CPU_MODEL)))
# include common nrf52840 dependencies
include $(RIOTBOARD)/common/nrf52/nrf52840/Makefile.dep
ifneq (,$(filter nrf52811xxaa nrf52820xxaa rf52833xxaa nrf52840xxaa,$(CPU_MODEL)))
# include dependencies for 802.15.4 radio
include $(RIOTBOARD)/common/nrf52/Makefile.nrf802154.dep
else
# include dependencies for BLE
include $(RIOTBOARD)/common/nrf52/Makefile.nimble.dep
endif

View File

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

View File

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