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

#display
CONFIG_I2C=y
CONFIG_SPI=n
CONFIG_NRFX_SPI1=n
CONFIG_NRFX_TWIM1=y
CONFIG_DISPLAY=y
CONFIG_AUXDISPLAY=y

# Enable the UART driver
CONFIG_UART_ASYNC_API=y
CONFIG_NRFX_UARTE0=y
CONFIG_UART_3_INTERRUPT_DRIVEN=n 
CONFIG_UART_3_ASYNC=y

# CONFIG_NRFX_UARTE1=y
CONFIG_SERIAL=y

CONFIG_GPIO=y

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

# CONFIG_HEAP_MEM_POOL_SIZE=8192

CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME="Avirings Live Connector v1"
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_PAIRED=1

#Device information service
CONFIG_BT_DIS=y
CONFIG_BT_DIS_MODEL="Avirings Live Connector"
CONFIG_BT_DIS_MANUF="Avirings d.o.o."
CONFIG_BT_DIS_FW_REV=y
CONFIG_BT_DIS_FW_REV_STR="0.1"
CONFIG_BT_DIS_SW_REV=y
CONFIG_BT_DIS_SW_REV_STR="fw.avirings.com/d/livec"
CONFIG_BT_DIS_PNP=n

CONFIG_BT_PERIPHERAL_PREF_MIN_INT=7
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=15
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=y

CONFIG_BT_L2CAP_TX_MTU=498
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_BUF_ACL_RX_SIZE=502


# Enable the NUS service
CONFIG_BT_NUS=y
CONFIG_BT_NUS_UART_BUFFER_SIZE=80
# 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 stack
# CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_MAIN_STACK_SIZE=16288
CONFIG_HEAP_MEM_POOL_SIZE=26288

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


CONFIG_ASSERT=y
