drivers/slipdev : Expose to Kconfig
Expose configurations to Kconfig
This commit is contained in:
parent
b4451ffd43
commit
e6924e525d
@ -14,6 +14,7 @@ rsource "cc110x/Kconfig"
|
|||||||
rsource "dose/Kconfig"
|
rsource "dose/Kconfig"
|
||||||
rsource "mrf24j40/Kconfig"
|
rsource "mrf24j40/Kconfig"
|
||||||
rsource "pn532/Kconfig"
|
rsource "pn532/Kconfig"
|
||||||
|
rsource "slipdev/Kconfig"
|
||||||
source "$(RIOTCPU)/nrf52/radio/nrf802154/Kconfig"
|
source "$(RIOTCPU)/nrf52/radio/nrf802154/Kconfig"
|
||||||
endmenu # Network Device Drivers
|
endmenu # Network Device Drivers
|
||||||
|
|
||||||
|
|||||||
@ -45,6 +45,10 @@ extern "C" {
|
|||||||
*
|
*
|
||||||
* @pre Needs to be power of two and `<= INT_MAX`
|
* @pre Needs to be power of two and `<= INT_MAX`
|
||||||
*/
|
*/
|
||||||
|
#ifdef CONFIG_SLIPDEV_BUFSIZE_EXP
|
||||||
|
#define CONFIG_SLIPDEV_BUFSIZE (1<<CONFIG_SLIPDEV_BUFSIZE_EXP)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_SLIPDEV_BUFSIZE
|
#ifndef CONFIG_SLIPDEV_BUFSIZE
|
||||||
#define CONFIG_SLIPDEV_BUFSIZE (2048U)
|
#define CONFIG_SLIPDEV_BUFSIZE (2048U)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
25
drivers/slipdev/Kconfig
Normal file
25
drivers/slipdev/Kconfig
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# 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_SLIPDEV
|
||||||
|
bool "Configure SLIPDEV driver"
|
||||||
|
depends on MODULE_SLIPDEV
|
||||||
|
help
|
||||||
|
Configure the SLIPDEV driver using Kconfig.
|
||||||
|
|
||||||
|
if KCONFIG_MODULE_SLIPDEV
|
||||||
|
|
||||||
|
config SLIPDEV_BUFSIZE_EXP
|
||||||
|
int "Buffer size (as exponent of 2^n)"
|
||||||
|
default 11
|
||||||
|
range 0 31
|
||||||
|
help
|
||||||
|
UART buffer size used for TX and RX buffers.
|
||||||
|
Reduce this value if your expected traffic does
|
||||||
|
not include full IPv6 MTU.
|
||||||
|
Value represents the exponent n of 2^n.
|
||||||
|
|
||||||
|
endif # KCONFIG_MODULE_SLIPDEV
|
||||||
Loading…
x
Reference in New Issue
Block a user