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
|
2024-05-24 22:50:37 +02:00
|
|
|
# the nrf802154 driver is supported by OpenWSN
|
|
|
|
FEATURES_PROVIDED += netif_openwsn
|
2020-10-02 10:44:59 +02:00
|
|
|
endif
|
|
|
|
|
2023-08-29 18:54:57 +02:00
|
|
|
# crypto features
|
|
|
|
ifneq (,$(filter nrf52840xxaa,$(CPU_MODEL)))
|
|
|
|
FEATURES_PROVIDED += periph_hash_sha_1
|
|
|
|
FEATURES_PROVIDED += periph_hash_sha_224
|
|
|
|
FEATURES_PROVIDED += periph_hash_sha_256
|
|
|
|
FEATURES_PROVIDED += periph_hash_sha_512
|
|
|
|
FEATURES_PROVIDED += periph_hmac_sha_256
|
|
|
|
FEATURES_PROVIDED += periph_cipher_aes_128_cbc
|
2024-07-23 17:11:34 +02:00
|
|
|
FEATURES_PROVIDED += periph_cipher_chacha20
|
2023-08-29 18:54:57 +02:00
|
|
|
FEATURES_PROVIDED += periph_ecc_p192r1
|
|
|
|
FEATURES_PROVIDED += periph_ecc_p256r1
|
2023-09-25 17:19:32 +02:00
|
|
|
FEATURES_PROVIDED += periph_ecc_ed25519
|
2023-08-29 18:54:57 +02:00
|
|
|
endif
|
|
|
|
|
2023-11-22 15:27:59 +01:00
|
|
|
# All nRF52 CPUs use UARTE (UART + EasyDMA) for UART, so that can be used
|
|
|
|
# in non-blocking mode
|
|
|
|
FEATURES_PROVIDED += periph_uart_nonblocking
|
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
|
|
|
|
|
2023-08-29 18:54:57 +02:00
|
|
|
ifneq (,$(filter nrf52840%,$(CPU_MODEL)))
|
|
|
|
FEATURES_PROVIDED += periph_cryptocell_310
|
|
|
|
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
|