1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/rn2xx3 : Expose to Kconfig

Expose configurations to Kconfig

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
This commit is contained in:
Akshai M 2020-04-26 16:32:21 +05:30
parent 7d679c7f0f
commit 5699b2469b
2 changed files with 24 additions and 0 deletions

View File

@ -10,6 +10,7 @@ rsource "cc110x/Kconfig"
rsource "dose/Kconfig"
rsource "mrf24j40/Kconfig"
rsource "pn532/Kconfig"
rsource "rn2xx3/Kconfig"
rsource "slipdev/Kconfig"
source "$(RIOTCPU)/nrf52/radio/nrf802154/Kconfig"
endmenu # Network Device Drivers

23
drivers/rn2xx3/Kconfig Normal file
View File

@ -0,0 +1,23 @@
# 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_RN2XX3
bool "Configure RN2XX3 driver"
depends on MODULE_RN2XX3
help
Configure the RN2XX3 driver using Kconfig.
if KCONFIG_MODULE_RN2XX3
config RN2XX3_DEFAULT_SLEEP
int "Sleep duration in milliseconds [ms]"
range 100 $(UINT32_MAX)
default 5000
help
Set the sleep duration (in ms).
The value should be greater than RN2XX3_SLEEP_MIN (100 ms)
endif # KCONFIG_MODULE_RN2XX3