1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/nrf52/Makefile.features
Benjamin Valentin c78ee2bf64 cpu/nrf52: provide radio_nrf802154 at CPU level
The presence of the 802.15.4 radio peripheral is a feature of the CPU,
not the board.
Move it to the right place and reduce code duplication.
2020-10-02 10:44:59 +02:00

24 lines
678 B
Makefile

ifneq (,$(filter nrf52832xxaa nrf52833xxaa nrf52840xxaa,$(CPU_MODEL)))
CPU_CORE = cortex-m4f
else
CPU_CORE = cortex-m4
endif
CPU_FAM = nrf52
# The 802.15.4 radio is not available on all SoCs
ifneq (,$(filter nrf52811xxaa nrf52820xxaa rf52833xxaa nrf52840xxaa,$(CPU_MODEL)))
FEATURES_PROVIDED += radio_nrf802154
endif
# The ADC does not depend on any board configuration, so always available
FEATURES_PROVIDED += periph_adc
# So far, NimBLE netif does not support nrf51 platforms, so we use a dedicated
# feature to mark this
FEATURES_PROVIDED += ble_nimble_netif
# all nrf52 have an MPU
FEATURES_PROVIDED += cortexm_mpu
include $(RIOTCPU)/nrf5x_common/Makefile.features