1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/nrf52/Kconfig
Marian Buschsieweke 63faa5f162
cpu/nrf5x: clean up periph_uart
- nRF51: Use `uart_conf_t` for consistency with nRF52
- nRF52832: Use UARTE (UART with EasyDMA) over UART (without DMA), as
  done for all other nRF52 family members
- use `UARTE_PRESENT` to detect whether an UARTE can be used, rather
  than family names
2023-11-26 21:33:23 +01:00

104 lines
2.7 KiB
Plaintext

# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
config CPU_FAM_NRF52
bool
select CPU_COMMON_NRF5X
# The ADC does not depend on any board configuration, so always available
select HAS_PERIPH_ADC
select HAS_BLE_ADV_EXT
# So far, NimBLE netif does not support nrf51 platforms, so we use a dedicated
# feature to mark this
select HAS_BLE_NIMBLE_NETIF
# All nrf52s support the 2Mbit PHY mode
select HAS_BLE_PHY_2MBIT
select HAS_CORTEXM_MPU
select HAS_CPU_NRF52
select HAS_PERIPH_I2C_RECONFIGURE
select HAS_PERIPH_SPI_GPIO_MODE
select HAS_PERIPH_UART_NONBLOCKING
## CPU Models
config CPU_MODEL_NRF52805XXAA
bool
select CPU_CORE_CORTEX_M4
select CPU_FAM_NRF52
config CPU_MODEL_NRF52810XXAA
bool
select CPU_CORE_CORTEX_M4
select CPU_FAM_NRF52
config CPU_MODEL_NRF52811XXAA
bool
select CPU_CORE_CORTEX_M4
select CPU_FAM_NRF52
select HAS_BLE_PHY_CODED
select HAS_RADIO_NRF802154
config CPU_MODEL_NRF52820XXAA
bool
select CPU_CORE_CORTEX_M4
select CPU_FAM_NRF52
select HAS_BLE_PHY_CODED
select HAS_RADIO_NRF802154
config CPU_MODEL_NRF52832XXAA
bool
select CPU_FAM_NRF52
select CPU_CORE_CORTEX_M4F
config CPU_MODEL_NRF52833XXAA
bool
select CPU_CORE_CORTEX_M4F
select CPU_FAM_NRF52
select HAS_BLE_PHY_CODED
select HAS_RADIO_NRF802154
config CPU_MODEL_NRF52840XXAA
bool
select CPU_CORE_CORTEX_M4F
select CPU_FAM_NRF52
select HAS_BLE_PHY_CODED
select HAS_RADIO_NRF802154
select HAS_PERIPH_HASH_SHA_1
select HAS_PERIPH_HASH_SHA_224
select HAS_PERIPH_HASH_SHA_256
select HAS_PERIPH_HASH_SHA_512
select HAS_PERIPH_HMAC_SHA_256
select HAS_PERIPH_CIPHER_AES_128_CBC
select HAS_PERIPH_ECC_P192R1
select HAS_PERIPH_ECC_P256R1
select HAS_PERIPH_ECC_ED25519
select HAS_PERIPH_CRYPTOCELL_310
## CPU common symbols
config CPU_FAM
default "nrf52" if CPU_FAM_NRF52
config CPU_MODEL
default "nrf52805xxaa" if CPU_MODEL_NRF52805XXAA
default "nrf52810xxaa" if CPU_MODEL_NRF52810XXAA
default "nrf52811xxaa" if CPU_MODEL_NRF52811XXAA
default "nrf52820xxaa" if CPU_MODEL_NRF52820XXAA
default "nrf52832xxaa" if CPU_MODEL_NRF52832XXAA
default "nrf52833xxaa" if CPU_MODEL_NRF52833XXAA
default "nrf52840xxaa" if CPU_MODEL_NRF52840XXAA
config CPU
default "nrf52" if CPU_FAM_NRF52
## Definition of specific features
config HAS_CPU_NRF52
bool
help
Indicates that the current cpu is 'nrf52'.
rsource "periph/Kconfig"
rsource "vectors/Kconfig"
source "$(RIOTCPU)/nrf5x_common/Kconfig"