Skip to content

Commit

Permalink
samples: net: echo_client: Decrease SRAM for atsamr21_xpro
Browse files Browse the repository at this point in the history
This update the echo_client configurations for the atsamr21_xpro board
to match same configs defined at echo_server.

Signed-off-by: Gerson Fernando Budke <[email protected]>
  • Loading branch information
nandojve committed Nov 26, 2023
1 parent 38f47f6 commit eb161a9
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions samples/net/sockets/echo_client/boards/atsamr21_xpro.conf
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
#
# Copyright (c) 2020-2021, Gerson Fernando Budke
# Copyright (c) 2019, Benjamin Valentin
# Copyright (c) 2020-2023, Gerson Fernando Budke
#
# SPDX-License-Identifier: Apache-2.0
#

# Reduced buffers to fit into SAMR21 SoC
# Reduced configs to fit into SAMR21 SoC
CONFIG_CPP=n

CONFIG_NET_PKT_RX_COUNT=6
CONFIG_NET_PKT_TX_COUNT=6
CONFIG_NET_BUF_RX_COUNT=6
CONFIG_NET_BUF_TX_COUNT=6
CONFIG_NET_MAX_CONTEXTS=4
CONFIG_NET_PKT_RX_COUNT=5
CONFIG_NET_PKT_TX_COUNT=5
CONFIG_NET_BUF_RX_COUNT=5
CONFIG_NET_BUF_TX_COUNT=5
CONFIG_NET_MAX_CONTEXTS=2
CONFIG_NET_MAX_CONN=1
CONFIG_NET_MAX_ROUTES=1
CONFIG_NET_MAX_NEXTHOPS=1

CONFIG_SHELL_STACK_SIZE=768
CONFIG_SHELL_CMD_BUFF_SIZE=64
CONFIG_SHELL_STACK_SIZE=384
CONFIG_SHELL_CMD_BUFF_SIZE=16
CONFIG_SHELL_ARGC_MAX=6
CONFIG_SHELL_HISTORY_BUFFER=64
CONFIG_SHELL_HISTORY_BUFFER=4

CONFIG_LOG_MODE_MINIMAL=y
CONFIG_NET_IP_DSCP_ECN=n
CONFIG_NET_STATISTICS=n
CONFIG_NET_MGMT_EVENT_STACK_SIZE=384
CONFIG_IEEE802154_RF2XX_RX_STACK_SIZE=384

CONFIG_UART_USE_RUNTIME_CONFIGURE=n

0 comments on commit eb161a9

Please sign in to comment.