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

# Enable the UART driver
CONFIG_UART_ASYNC_API=y
CONFIG_NRFX_UARTE0=y
CONFIG_SERIAL=y

CONFIG_GPIO=y

#
#CONFIG_LOG_BUFFER_SIZE=16384
#CONFIG_SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL=y
#CONFIG_LOG_BLOCK_IN_THREAD=y
#CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=8192
#CONFIG_LOG_BLOCK_IN_THREAD_TIMEOUT_MS=-1
#CONFIG_BT_DEBUG_LOG=y
#CONFIG_BT_DEBUG_SMP=y
#CONFIG_BT_LOG_SNIFFER_INFO=y
#CONFIG_BT_DEBUG_KEYS=y
#CONFIG_BT_DEBUG_CONN=y

#CONFIG_BT_DEBUG_L2CAP=y
#CONFIG_BT_DEBUG_HCI_CORE=y
#CONFIG_BT_DEBUG_SERVICE=y
#CONFIG_BT_DEBUG_HCI_DRIVER=y


#CONFIG_BT_CONN_PARAM_UPDATE_TIMEOUT=30000
#
# Make sure printk is printing to the UART console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

CONFIG_HEAP_MEM_POOL_SIZE=2048

CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME="Nordic_UART_Service"
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_PAIRED=1

# Enable the NUS service
CONFIG_BT_NUS=y

# Enable bonding
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y

# Enable DK LED and Buttons library
CONFIG_DK_LIBRARY=y

# This example requires more workqueue stack
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

# Config logger
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n
CONFIG_RTT_CONSOLE=y

CONFIG_ASSERT=y
