mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ble/softdevice: add ble_nordic_softdevice feature
The softdevice is only verified to be working on nrf52832-based boards. This feature prevents the softdevice from being build for other, similar targets (e.g. nrf52840-based boards).
This commit is contained in:
parent
c3aaf621b5
commit
03153acb1a
@ -72,6 +72,7 @@ ifneq (,$(filter uhcpc,$(USEMODULE)))
|
||||
endif
|
||||
|
||||
ifneq (,$(filter nordic_softdevice_ble,$(USEPKG)))
|
||||
FEATURES_REQUIRED += ble_nordic_softdevice
|
||||
USEMODULE += softdevice_handler
|
||||
USEMODULE += ble_common
|
||||
USEMODULE += ble_6lowpan
|
||||
|
@ -3,4 +3,5 @@ FEATURES_PROVIDED += periph_i2c
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.nrf52832.features
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
2
boards/common/nrf52/Makefile.nrf52832.features
Normal file
2
boards/common/nrf52/Makefile.nrf52832.features
Normal file
@ -0,0 +1,2 @@
|
||||
# Nordic SoftDevice support in RIOT is verified for all nrf52832-based boards
|
||||
FEATURES_PROVIDED += ble_nordic_softdevice
|
@ -1,4 +1,5 @@
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.nrf52832.features
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
@ -1 +1,2 @@
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.nrf52832.features
|
||||
include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.features
|
||||
|
@ -2,4 +2,5 @@
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.nrf52832.features
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
@ -1,4 +1,5 @@
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.nrf52832.features
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
Loading…
Reference in New Issue
Block a user