From 4472c775533ba4a2bffe4867e0a9ffef89f4724a Mon Sep 17 00:00:00 2001 From: Akshai M Date: Mon, 20 Apr 2020 23:14:37 +0530 Subject: [PATCH] drivers/dose : Expose to Kconfig Expose Configurations to Kconfig --- drivers/Kconfig.net | 1 + drivers/dose/Kconfig | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 drivers/dose/Kconfig diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index 4979cf290f3f8..b7ae037e610bd 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -5,6 +5,7 @@ # directory for more details. menu "Network Device Drivers" +rsource "dose/Kconfig" rsource "mrf24j40/Kconfig" source "$(RIOTCPU)/nrf52/radio/nrf802154/Kconfig" endmenu # Network Device Drivers diff --git a/drivers/dose/Kconfig b/drivers/dose/Kconfig new file mode 100644 index 0000000000000..eb8a9d92a7993 --- /dev/null +++ b/drivers/dose/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_DOSE + bool "Configure DOSE driver" + depends on MODULE_DOSE + help + Configure the Differentially Operated Serial Ethernet (DOSE) + driver using Kconfig. + +if KCONFIG_MODULE_DOSE + +config DOSE_TIMEOUT_USEC + int "Configure timeout(uS)" + default 5000 + help + Configure the timeout, in micro seconds, to bring the driver back + into idle state if the remote side died within a transaction. + Default channel is 5000 micro seconds. + +endif # KCONFIG_MODULE_DOSE