diff --git a/cpu/nrf53/Kconfig b/cpu/nrf53/Kconfig new file mode 100644 index 0000000000..fc3c48f828 --- /dev/null +++ b/cpu/nrf53/Kconfig @@ -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" diff --git a/cpu/nrf5x_common/Kconfig b/cpu/nrf5x_common/Kconfig index 7e806c1e5b..3da9d1aaa6 100644 --- a/cpu/nrf5x_common/Kconfig +++ b/cpu/nrf5x_common/Kconfig @@ -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