2020-06-23 00:12:21 +02:00
|
|
|
ifneq (,$(filter nrf52832xxaa nrf52833xxaa nrf52840xxaa,$(CPU_MODEL)))
|
2020-06-10 13:11:32 +02:00
|
|
|
CPU_CORE = cortex-m4f
|
2020-06-23 00:12:21 +02:00
|
|
|
else
|
|
|
|
CPU_CORE = cortex-m4
|
|
|
|
endif
|
2020-01-30 09:49:47 +01:00
|
|
|
CPU_FAM = nrf52
|
|
|
|
|
2020-10-02 10:44:59 +02:00
|
|
|
# The 802.15.4 radio is not available on all SoCs
|
2021-02-08 20:45:10 +01:00
|
|
|
ifneq (,$(filter nrf52811xxaa nrf52820xxaa nrf52833xxaa nrf52840xxaa,$(CPU_MODEL)))
|
2020-10-02 10:44:59 +02:00
|
|
|
FEATURES_PROVIDED += radio_nrf802154
|
|
|
|
endif
|
|
|
|
|
2021-02-25 14:26:18 +01:00
|
|
|
ifeq (,$(filter nrf52832%,$(CPU_MODEL)))
|
|
|
|
FEATURES_PROVIDED += periph_uart_nonblocking
|
|
|
|
endif
|
2017-10-09 15:30:50 +02:00
|
|
|
# The ADC does not depend on any board configuration, so always available
|
|
|
|
FEATURES_PROVIDED += periph_adc
|
|
|
|
|
2019-11-13 13:05:34 +01:00
|
|
|
# So far, NimBLE netif does not support nrf51 platforms, so we use a dedicated
|
|
|
|
# feature to mark this
|
|
|
|
FEATURES_PROVIDED += ble_nimble_netif
|
|
|
|
|
2020-03-02 15:01:22 +01:00
|
|
|
# all nrf52 have an MPU
|
|
|
|
FEATURES_PROVIDED += cortexm_mpu
|
|
|
|
|
2020-11-30 16:35:50 +01:00
|
|
|
FEATURES_PROVIDED += periph_i2c_reconfigure
|
2022-01-18 15:08:46 +01:00
|
|
|
FEATURES_PROVIDED += periph_spi_gpio_mode
|
2020-11-30 16:35:50 +01:00
|
|
|
|
2021-09-13 14:37:58 +02:00
|
|
|
# On top of the default 1Mbit PHY mode, all nrf52 support the 2MBit PHY mode,
|
|
|
|
# and the 52840 does further support the coded PHYs
|
|
|
|
FEATURES_PROVIDED += ble_phy_2mbit
|
|
|
|
ifneq (,$(filter nrf52811% nrf52820% nrf52833% nrf52840%,$(CPU_MODEL)))
|
|
|
|
FEATURES_PROVIDED += ble_phy_coded
|
|
|
|
endif
|
|
|
|
|
2022-08-12 16:08:06 +02:00
|
|
|
FEATURES_PROVIDED += ble_adv_ext
|
|
|
|
|
2020-07-03 11:11:11 +02:00
|
|
|
include $(RIOTCPU)/nrf5x_common/Makefile.features
|