From 709c1aac3036aafe271b78d6acdd43560f8d51a5 Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Thu, 16 Jan 2020 16:36:31 +0100 Subject: [PATCH] Kconfig: Expose NRF802154 configurations --- cpu/nrf52/radio/nrf802154/Kconfig | 22 ++++++++++++++++++++++ drivers/Kconfig | 1 + drivers/Kconfig.net | 9 +++++++++ 3 files changed, 32 insertions(+) create mode 100644 cpu/nrf52/radio/nrf802154/Kconfig create mode 100644 drivers/Kconfig.net diff --git a/cpu/nrf52/radio/nrf802154/Kconfig b/cpu/nrf52/radio/nrf802154/Kconfig new file mode 100644 index 0000000000..cff443e7ef --- /dev/null +++ b/cpu/nrf52/radio/nrf802154/Kconfig @@ -0,0 +1,22 @@ +# 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. + +menuconfig KCONFIG_MODULE_NRF802154 + bool "Configure nRF802154" + depends on MODULE_NRF802154 + help + Configure nRF802154 module using Kconfig. + +if KCONFIG_MODULE_NRF802154 + +config NRF802154_CCA_THRESH_DEFAULT + hex "Default CCA threshold value" + default 0x14 + range 0x00 0xFF + help + Default CCA threshold value for the CCACTRL register. + +endif # KCONFIG_MODULE_NRF802154 diff --git a/drivers/Kconfig b/drivers/Kconfig index 779f9ede61..caea65be4f 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -5,4 +5,5 @@ # directory for more details. menu "Drivers" +rsource "Kconfig.net" endmenu # Drivers diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net new file mode 100644 index 0000000000..0f215f736f --- /dev/null +++ b/drivers/Kconfig.net @@ -0,0 +1,9 @@ +# 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. + +menu "Network Device Drivers" +source "$(RIOTCPU)/nrf52/radio/nrf802154/Kconfig" +endmenu # Network Device Drivers