From 31b288443a2d1d3ef10236c2141ce95826910673 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 3 Jul 2020 10:47:11 +0200 Subject: [PATCH] cpu/nrfx_common: Add Kconfig symbols --- cpu/nrf5x_common/Kconfig | 57 ++++++++++++++++++++++++++++++ cpu/nrf5x_common/Makefile.features | 2 +- kconfigs/Kconfig.features | 5 --- 3 files changed, 58 insertions(+), 6 deletions(-) create mode 100644 cpu/nrf5x_common/Kconfig diff --git a/cpu/nrf5x_common/Kconfig b/cpu/nrf5x_common/Kconfig new file mode 100644 index 0000000000..79888c3e8e --- /dev/null +++ b/cpu/nrf5x_common/Kconfig @@ -0,0 +1,57 @@ +# 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_COMMON_NRF5X + bool + select HAS_PERIPH_CPUID + select HAS_PERIPH_FLASHPAGE + select HAS_PERIPH_FLASHPAGE_RAW + select HAS_PERIPH_GPIO + select HAS_PERIPH_GPIO_IRQ + select HAS_PERIPH_HWRNG + select HAS_PERIPH_TEMPERATURE + select HAS_PERIPH_UART_MODECFG + select HAS_PERIPH_WDT + select HAS_PERIPH_WDT_CB + select HAS_BLE_NIMBLE + select HAS_RADIO_NRFBLE + select HAS_RADIO_NRFMIN + select HAS_PUF_SRAM + +## Definition of specific features +config HAS_BOOTLOADER_NRFUTIL + bool + help + Indicates that the nRF Util bootloader is being used. + +config HAS_BLE_NIMBLE + bool + help + Indicates that the NimBLE stack is supported on the current platform. + +config HAS_BLE_NIMBLE_NETIF + bool + help + Indicates that NimBLE netif is supported on the current platform. + +config HAS_RADIO_NRFBLE + bool + help + Indicates that a BLE-compatible nRF radio is present. + +config HAS_RADIO_NRFMIN + bool + help + Indicates that a radio compatible with the nRF minimal radio driver is + present. + +config HAS_BLE_NORDIC_SOFTDEVICE + bool + help + Indicates that Nordic SoftDevice support in RIOT has been verified on the + current platform. + +source "$(RIOTCPU)/cortexm_common/Kconfig" diff --git a/cpu/nrf5x_common/Makefile.features b/cpu/nrf5x_common/Makefile.features index c592a87a39..77c90ce8dd 100644 --- a/cpu/nrf5x_common/Makefile.features +++ b/cpu/nrf5x_common/Makefile.features @@ -14,4 +14,4 @@ FEATURES_PROVIDED += radio_nrfble FEATURES_PROVIDED += radio_nrfmin FEATURES_PROVIDED += puf_sram --include $(RIOTCPU)/cortexm_common/Makefile.features +include $(RIOTCPU)/cortexm_common/Makefile.features diff --git a/kconfigs/Kconfig.features b/kconfigs/Kconfig.features index f86cd62df6..6c742780c5 100644 --- a/kconfigs/Kconfig.features +++ b/kconfigs/Kconfig.features @@ -42,11 +42,6 @@ config HAS_BOOTLOADER_ARDUINO help Indicates that the Arduino bootloader is used. -config HAS_BOOTLOADER_NRFUTIL - bool - help - Indicates that the NRF Util bootloader is used. - config HAS_CPP bool help