#
# Copyright (c) 2021 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Options enabled by CONFIG_NCS_SAMPLES_DEFAULTS,
# put this way to get rid of LOG_MINIMAL
CONFIG_LOG=y
CONFIG_ASSERT=y
CONFIG_ASSERT_NO_COND_INFO=y
CONFIG_ASSERT_NO_MSG_INFO=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_LOG_DEFAULT_LEVEL=1

# Configure serial
CONFIG_SERIAL=y

# Make sure printk is not printing to the UART console
CONFIG_CONSOLE=y

# attempt to use RTT console
CONFIG_UART_CONSOLE=n
CONFIG_RTT_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n



CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_MAIN_THREAD_PRIORITY=7

CONFIG_ZIGBEE=y
CONFIG_ZIGBEE_APP_UTILS=y
CONFIG_ZIGBEE_ROLE_ROUTER=y

CONFIG_ZIGBEE_CHANNEL_SELECTION_MODE_SINGLE=n
# goes with CONFIG_ZIGBEE_CHANNEL
CONFIG_ZIGBEE_CHANNEL_SELECTION_MODE_MULTI=y
# goes with CONFIG_ZIGBEE_CHANNEL_MASK 

# This example requires more workqueue stack
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

# Enable nRF ECB driver
CONFIG_CRYPTO=y
CONFIG_CRYPTO_NRF_ECB=y
CONFIG_CRYPTO_INIT_PRIORITY=80

# Networking
CONFIG_NET_IPV6_MLD=n
CONFIG_NET_IPV6_NBR_CACHE=n
CONFIG_NET_IPV6_RA_RDNSS=n
CONFIG_NET_IP_ADDR_CHECK=n
CONFIG_NET_UDP=n

# Zigbee shell
CONFIG_ZIGBEE_SHELL=y
CONFIG_ZIGBEE_SHELL_DEBUG_CMD=y
CONFIG_ZIGBEE_SHELL_ENDPOINT=64
CONFIG_ZIGBEE_SHELL_LOG_LEVEL_DBG=y
CONFIG_SHELL_CMDS=y

CONFIG_LOG_CMDS=y
CONFIG_LOG_STRDUP_MAX_STRING=370
