mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
cpu/nrf52: Add Kconfig symbols
This commit is contained in:
parent
83252e8f0d
commit
6a9c28aa72
46
cpu/nrf52/Kconfig
Normal file
46
cpu/nrf52/Kconfig
Normal file
@ -0,0 +1,46 @@
|
||||
# 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_CORE_CORTEX_M4F
|
||||
select CPU_COMMON_NRF5X
|
||||
# The ADC does not depend on any board configuration, so always available
|
||||
select HAS_PERIPH_ADC
|
||||
# So far, NimBLE netif does not support nrf51 platforms, so we use a dedicated
|
||||
# feature to mark this
|
||||
select HAS_BLE_NIMBLE_NETIF
|
||||
select HAS_CORTEXM_MPU
|
||||
select HAS_CPU_NRF52
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_NRF52832XXAA
|
||||
bool
|
||||
select CPU_FAM_NRF52
|
||||
select HAS_BLE_NORDIC_SOFTDEVICE
|
||||
|
||||
config CPU_MODEL_NRF52840XXAA
|
||||
bool
|
||||
select CPU_FAM_NRF52
|
||||
|
||||
## CPU common symbols
|
||||
config CPU_FAM
|
||||
default "nrf52" if CPU_FAM_NRF52
|
||||
|
||||
config CPU_MODEL
|
||||
default "nrf52832xxaa" if CPU_MODEL_NRF52832XXAA
|
||||
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'.
|
||||
|
||||
source "$(RIOTCPU)/nrf5x_common/Kconfig"
|
||||
@ -11,4 +11,4 @@ FEATURES_PROVIDED += ble_nimble_netif
|
||||
# all nrf52 have an MPU
|
||||
FEATURES_PROVIDED += cortexm_mpu
|
||||
|
||||
-include $(RIOTCPU)/nrf5x_common/Makefile.features
|
||||
include $(RIOTCPU)/nrf5x_common/Makefile.features
|
||||
|
||||
@ -20,3 +20,9 @@ config NRF802154_CCA_THRESH_DEFAULT
|
||||
Default CCA threshold value for the CCACTRL register.
|
||||
|
||||
endif # KCONFIG_MODULE_NRF802154
|
||||
|
||||
## Related features
|
||||
config HAS_RADIO_NRF802154
|
||||
bool
|
||||
help
|
||||
Indicates that a IEEE 802.15.4 NRF52 radio is present.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user