From 73eb3cba727dbf05b9d0c6886cf602bdabdfd5cf Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Fri, 12 Aug 2022 10:39:26 +0200 Subject: [PATCH] kconfig: move BLE_* features to common features file These BLE_* features are not necessarily nRF5x specific and should be defined as common features. The commit also fixes the alphabetical order for HAS_RUST_TARGET. --- cpu/nrf5x_common/Kconfig | 20 -------------------- kconfigs/Kconfig.features | 24 ++++++++++++++++++++++-- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/cpu/nrf5x_common/Kconfig b/cpu/nrf5x_common/Kconfig index 4a9ddba138..7e806c1e5b 100644 --- a/cpu/nrf5x_common/Kconfig +++ b/cpu/nrf5x_common/Kconfig @@ -27,26 +27,6 @@ config CPU_COMMON_NRF5X select HAS_RADIO_NRFMIN ## Definition of specific features -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_BLE_PHY_2MBIT - bool - help - Indicates that the BLE radio supports the 2Mbit PHY mode - -config HAS_BLE_PHY_CODED - bool - help - Indicates that the BLE radio supports the CODED PHY mode - config HAS_RADIO_NRFBLE bool select HAVE_NRF5X_RADIO diff --git a/kconfigs/Kconfig.features b/kconfigs/Kconfig.features index 774689720a..6f609fb197 100644 --- a/kconfigs/Kconfig.features +++ b/kconfigs/Kconfig.features @@ -42,10 +42,25 @@ config HAS_BACKUP_RAM help Indicates that Backup RAM is supported. -config HAS_RUST_TARGET +config HAS_BLE_NIMBLE bool help - Indicates that a Rust target definition ("triple") is known. + 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_BLE_PHY_2MBIT + bool + help + Indicates that the BLE radio supports the 2Mbit PHY mode + +config HAS_BLE_PHY_CODED + bool + help + Indicates that the BLE radio supports the CODED PHY mode config HAS_CPP bool @@ -438,6 +453,11 @@ config HAS_RIOTBOOT help Indicates that the riotboot booloader is supported. +config HAS_RUST_TARGET + bool + help + Indicates that a Rust target definition ("triple") is known. + config HAS_SDCARD_SPI bool help