1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/nrf53: add initial Kconfig

Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
This commit is contained in:
Dylan Laduranty 2023-07-04 17:17:23 +02:00
parent f084f6e335
commit 1664232325
2 changed files with 43 additions and 0 deletions

42
cpu/nrf53/Kconfig Normal file
View File

@ -0,0 +1,42 @@
# Copyright (c) 2023 Mesotic SAS
#
# 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.
# For now, define all features here
# We will rely on nrf5x_common later when we support more peripherals
config CPU_FAM_NRF53
bool
select HAS_CPU_NRF53
select HAS_PERIPH_GPIO
select HAS_PERIPH_GPIO_IRQ
select HAS_PERIPH_TIMER_PERIODIC
select HAS_PERIPH_UART_MODECFG
## CPU Models
config CPU_MODEL_NRF5340_APP
bool
select CPU_CORE_CORTEX_M33
select CPU_FAM_NRF53
## CPU common symbols
config CPU_FAM
default "nrf53" if CPU_FAM_NRF53
config CPU_MODEL
default "nrf5340_app" if CPU_MODEL_NRF5340_APP
config CPU
default "nrf53" if CPU_FAM_NRF53
## Definition of specific features
config HAS_CPU_NRF53
bool
help
Indicates that the current cpu is 'nrf53'.
rsource "vectors/Kconfig"
source "$(RIOTCPU)/nrf5x_common/Kconfig"

View File

@ -5,6 +5,7 @@
# directory for more details.
config CPU_COMMON_NRF5X
depends on !CPU_FAM_NRF53
bool
select HAS_BLE_NIMBLE
select HAS_PERIPH_CPUID