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

CONFIG_SERIAL=y

########################################
# LOG
CONFIG_LOG=y
# CONFIG_USE_SEGGER_RTT=y
# CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_PROCESS_THREAD=y

########################################
# BLE general
CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_DEVICE_NAME="Device"
CONFIG_BT_DEVICE_APPEARANCE=962

# BLE pairing/security
CONFIG_BT_MAX_CONN=5
CONFIG_BT_MAX_PAIRED=5
CONFIG_BT_SMP=y
CONFIG_BT_L2CAP_TX_BUF_COUNT=5
CONFIG_BT_PERIPHERAL=y

CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y

CONFIG_BT_SMP_APP_PAIRING_ACCEPT=y

# thses are for using fixed passkey
CONFIG_BT_FIXED_PASSKEY=y
CONFIG_BT_SMP_SC_ONLY=y
CONFIG_BT_TINYCRYPT_ECC=y

CONFIG_BT_WHITELIST=y

# MTU
#CONFIG_BT_L2CAP_TX_MTU=96 # default=65
CONFIG_BT_ATT_PREPARE_COUNT=5

# BLE DIS
CONFIG_BT_DIS=y
CONFIG_BT_DIS_PNP=n
CONFIG_BT_DIS_MODEL="Device"
CONFIG_BT_DIS_MANUF="Device"
CONFIG_BT_DIS_SERIAL_NUMBER=y
CONFIG_BT_DIS_FW_REV=y
CONFIG_BT_DIS_HW_REV=y
CONFIG_BT_DIS_SW_REV=y
CONFIG_BT_DIS_SERIAL_NUMBER_STR="12345678"
CONFIG_BT_DIS_FW_REV_STR="FW Rev"
CONFIG_BT_DIS_HW_REV_STR="HW Rev"
CONFIG_BT_DIS_SW_REV_STR="SW Rev"

# Below is setup to let DIS information be read from settings
CONFIG_BT_DIS_SETTINGS=y

CONFIG_BT_DIS_STR_MAX=16

########################################
# settings
CONFIG_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y

########################################
# UART
CONFIG_UART_ASYNC_API=y
CONFIG_PM_DEVICE=y

########################################
# system
CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

