2022-08-23 18:51:31 +08:00
|
|
|
# Copyright Runtime.io 2018. All rights reserved.
|
|
|
|
# Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-12-02 22:19:31 +08:00
|
|
|
# The Kconfig file is dedicated to transport subdirectory of MCUmgr
|
|
|
|
# subsystem and provides Kconfig options to control aspects of
|
|
|
|
# transport, in general, that are not otherwise controlled by
|
|
|
|
# options belonging to transport specifically.
|
|
|
|
#
|
|
|
|
# Options defined in this file should be prefixed:
|
|
|
|
# MCUMGR_TRANSPORT_ -- general transport options;
|
|
|
|
# MCUMGR_TRANSPORT_WORKQUEUE -- for workqueue configuration;
|
|
|
|
# MCUMGR_TRANSPORT_NETBUF -- for Net Buf related configuration.
|
|
|
|
|
2022-12-02 21:54:52 +08:00
|
|
|
config MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE
|
|
|
|
int "MCUmgr transport workqueue stack size"
|
|
|
|
default 2048
|
|
|
|
help
|
|
|
|
Stack size of the MCUmgr for transport subsystem work queue.
|
|
|
|
|
|
|
|
config MCUMGR_TRANSPORT_WORKQUEUE_THREAD_PRIO
|
|
|
|
int "MCUmgr transport workqueue thread priority"
|
|
|
|
default 3
|
|
|
|
help
|
|
|
|
Scheduling priority of the MCUmgr transport subsystem work queue.
|
|
|
|
|
2022-11-25 00:28:24 +08:00
|
|
|
config MCUMGR_TRANSPORT_REASSEMBLY
|
2022-08-23 18:51:31 +08:00
|
|
|
bool
|
|
|
|
help
|
|
|
|
Enable structures and functions needed for packet reassembly by SMP backend.
|
|
|
|
|
2022-11-25 00:28:24 +08:00
|
|
|
config MCUMGR_TRANSPORT_NETBUF_COUNT
|
2022-08-23 18:51:31 +08:00
|
|
|
int "Number of mcumgr buffers"
|
2022-11-25 00:28:24 +08:00
|
|
|
default 2 if MCUMGR_TRANSPORT_UDP
|
2022-08-23 18:51:31 +08:00
|
|
|
default 4
|
|
|
|
help
|
|
|
|
The number of net_bufs to allocate for mcumgr. These buffers are
|
|
|
|
used for both requests and responses.
|
|
|
|
|
2022-11-25 00:28:24 +08:00
|
|
|
config MCUMGR_TRANSPORT_NETBUF_SIZE
|
2022-08-23 18:51:31 +08:00
|
|
|
int "Size of each mcumgr buffer"
|
2022-11-25 00:28:24 +08:00
|
|
|
default 2048 if MCUMGR_TRANSPORT_UDP
|
2022-08-23 18:51:31 +08:00
|
|
|
default 384
|
|
|
|
help
|
|
|
|
The size, in bytes, of each mcumgr buffer. This value must satisfy
|
|
|
|
the following relation:
|
2022-11-25 00:28:24 +08:00
|
|
|
MCUMGR_TRANSPORT_NETBUF_SIZE >= transport-specific-MTU + transport-overhead
|
|
|
|
In case when MCUMGR_TRANSPORT_SHELL is enabled this value should be set to
|
|
|
|
at least MCUMGR_GRP_SHELL_BACKEND_DUMMY_BUF_SIZE + 32.
|
2022-08-23 18:51:31 +08:00
|
|
|
|
2023-10-26 15:20:13 +08:00
|
|
|
config MCUMGR_TRANSPORT_NETBUF_MIN_USER_DATA_SIZE
|
|
|
|
int
|
|
|
|
default 24 if MCUMGR_TRANSPORT_UDP && NET_IPV6
|
2022-11-25 00:28:24 +08:00
|
|
|
default 8 if MCUMGR_TRANSPORT_UDP && MCUMGR_TRANSPORT_UDP_IPV4
|
|
|
|
default 8 if MCUMGR_TRANSPORT_BT
|
2022-08-23 18:51:31 +08:00
|
|
|
default 4
|
2023-10-26 15:20:13 +08:00
|
|
|
help
|
|
|
|
Hidden option to determine minimum user data size.
|
|
|
|
|
|
|
|
config MCUMGR_TRANSPORT_NETBUF_USER_DATA_SIZE
|
|
|
|
int "Size of mcumgr buffer user data"
|
|
|
|
range MCUMGR_TRANSPORT_NETBUF_MIN_USER_DATA_SIZE 128
|
|
|
|
default MCUMGR_TRANSPORT_NETBUF_MIN_USER_DATA_SIZE
|
2022-08-23 18:51:31 +08:00
|
|
|
help
|
|
|
|
The size, in bytes, of user data to allocate for each mcumgr buffer.
|
|
|
|
|
|
|
|
Different mcumgr transports impose different requirements for this
|
2022-11-10 19:28:41 +08:00
|
|
|
setting. A value of 4 is sufficient for UART and shell, a value of 8
|
2022-10-28 20:43:58 +08:00
|
|
|
is sufficient for Bluetooth. For UDP, the userdata must be large
|
2023-10-26 15:20:13 +08:00
|
|
|
enough to hold IPv4/IPv6 addresses.
|
2022-08-23 18:51:31 +08:00
|
|
|
|
2022-12-02 21:54:52 +08:00
|
|
|
module = MCUMGR_TRANSPORT
|
|
|
|
module-str = mcumgr_transport
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
2022-04-04 21:19:47 +08:00
|
|
|
rsource "Kconfig.dummy"
|
|
|
|
|
2022-08-23 18:51:31 +08:00
|
|
|
rsource "Kconfig.bluetooth"
|
|
|
|
|
|
|
|
rsource "Kconfig.shell"
|
|
|
|
|
|
|
|
rsource "Kconfig.uart"
|
|
|
|
|
|
|
|
rsource "Kconfig.udp"
|