1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-30 17:01:19 +01:00

sys/net/cord : 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-06-17 20:25:53 +05:30
parent 536a99022c
commit bb8d3cd72b
2 changed files with 54 additions and 0 deletions

View File

@ -14,4 +14,5 @@ rsource "nanocoap/Kconfig"
endmenu # CoAP
rsource "cord/Kconfig"
rsource "dhcpv6/Kconfig"

View File

@ -0,0 +1,53 @@
# 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_USEMODULE_CORD
bool "Configure CoRE RD client"
depends on USEMODULE_CORD_COMMON
help
Configure the CoRE Resource Directory (RD) Endpoint and Lookup Client
using Kconfig.
if KCONFIG_USEMODULE_CORD
config CORD_LT
int "CORD client lifetime in seconds"
default 86400
help
Configure 'CONFIG_CORD_LT', client lifetime in seconds. The default
value of 86400 seconds corresponds to 1 day.
config CORD_UPDATE_INTERVAL_EN
bool "Enable configuration of RD client update interval"
help
Enable configuration of RD Client update interval. If not enabled, CORD
update interval will default to 3/4th the value of CORD client lifetime
('CONFIG_CORD_LT').
config CORD_UPDATE_INTERVAL
int "CORD client update interval in seconds"
default 64800
depends on CORD_UPDATE_INTERVAL_EN
help
Configure CORD client update interval in seconds.
config CORD_EP_EN
bool "Enable configuration of node's endpoint ID"
help
Enable configuration of node's endpoint name. If not enabled, the ID is
generated by concatenation of 'CORD_EP_PREFIX', default value is 'RIOT-'
, and a locally unique ID (luid) encoded in hexadecimal formatting with
the given length of characters 'CORD_EP_SUFFIX_LEN', default value is
16.
config CORD_EP
string "Node's endpoint ID"
default "MyNewEpName"
depends on CORD_EP_EN
help
Configure node's endpoint ID.
endif # KCONFIG_USEMODULE_CORD