Skip to content

Commit 5dc3c1b

Browse files
committed
cpu/nrf5x_common: prohibit selecting multiple radio mode features
1 parent cdcabf2 commit 5dc3c1b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

cpu/nrf52/Makefile.dep

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ ifneq (,$(filter nrf802154,$(USEMODULE)))
1717
endif
1818
endif
1919

20+
ifneq (,$(filter nrfble,$(USEMODULE)))
21+
FEATURES_REQUIRED += radio_nrfble
22+
endif
23+
2024
# The nrf52832 requires gpio IRQ with SPI to work around errata 58
2125
ifneq (,$(filter nrf52832xxaa,$(CPU_MODEL)))
2226
ifneq (,$(filter periph_spi,$(USEMODULE)))

cpu/nrf5x_common/Makefile.features

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@ ifeq (,$(filter nrf9160 nrf5340_app,$(CPU_MODEL)))
3737
FEATURES_PROVIDED += netif
3838
endif
3939

40+
FEATURES_CONFLICT += radio_nrf802154:radio_nrfble radio_nrf802154:radio_nrfmin radio_nrfble:radio_nrfmin
41+
FEATURES_CONFLICT_MSG += "Multiplexing the nRF radio between different radio modes is not supported."
42+
4043
include $(RIOTCPU)/cortexm_common/Makefile.features

0 commit comments

Comments
 (0)