From be097f8533d2e34382aaec948b3f80a7257d41f3 Mon Sep 17 00:00:00 2001 From: Akshai M Date: Fri, 17 Apr 2020 23:55:07 +0530 Subject: [PATCH] drivers/cc110x : Expose to Kconfig Expose Configurations to Kconfig --- drivers/Kconfig.net | 1 + drivers/cc110x/Kconfig | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 drivers/cc110x/Kconfig diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index 4979cf290f..8a0e81d515 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -5,6 +5,7 @@ # directory for more details. menu "Network Device Drivers" +rsource "cc110x/Kconfig" rsource "mrf24j40/Kconfig" source "$(RIOTCPU)/nrf52/radio/nrf802154/Kconfig" endmenu # Network Device Drivers diff --git a/drivers/cc110x/Kconfig b/drivers/cc110x/Kconfig new file mode 100644 index 0000000000..a3ad238fd6 --- /dev/null +++ b/drivers/cc110x/Kconfig @@ -0,0 +1,24 @@ +# Copyright (c) 2020 Freie Universitaet Berlin +# +# 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_CC110X + bool "Configure CC110X driver" + depends on MODULE_CC110X + help + Configure the CC110X driver using Kconfig. + +if KCONFIG_MODULE_CC110X + +config CC110X_DEFAULT_CHANNEL + int "Configure default channel" + range 0 7 + default 0 + help + Set the default channel for transmission from the allowed + maximum of 8 (0-7) Channels. + Default channel is 0. + +endif # KCONFIG_MODULE_CC110X