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


CONFIG_GPIO=y
CONFIG_LED=y

CONFIG_HEAP_MEM_POOL_SIZE=2048

CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME="VTXxxxxx"
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_PAIRED=1
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
CONFIG_BT_L2CAP_TX_BUF_COUNT=32
CONFIG_BT_BUF_ACL_TX_COUNT=32

CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_DYNAMIC_DB=y
CONFIG_BT_ATT_PREPARE_COUNT=5

CONFIG_BT_L2CAP_TX_MTU=247
CONFIG_BT_BUF_ACL_RX_SIZE=251

# Enable DIS support
CONFIG_BT_DIS=y
CONFIG_BT_DIS_PNP=n
CONFIG_BT_DIS_MODEL_NUMBER=y
CONFIG_BT_DIS_MANUF_NAME=y
CONFIG_BT_DIS_SERIAL_NUMBER=y
CONFIG_BT_DIS_FW_REV=y
CONFIG_BT_DIS_HW_REV=y
CONFIG_BT_DIS_SW_REV=n

CONFIG_BT_DIS_MANUF_NAME_STR="Vertex"
CONFIG_BT_DIS_MODEL_NUMBER_STR="Golf V2"
CONFIG_BT_DIS_SERIAL_NUMBER_STR="Default"
CONFIG_BT_DIS_FW_REV_STR="Default"
CONFIG_BT_DIS_HW_REV_STR="02.00.00"

CONFIG_BT_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_NONE=y

CONFIG_BT_DIS_SETTINGS=y
CONFIG_BT_DIS_STR_MAX=21

CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y

# Enable DK LED and Buttons library
CONFIG_DK_LIBRARY=n

# This example requires more stack
CONFIG_MAIN_STACK_SIZE=1152
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_LOG_PRINTK=n
CONFIG_SERIAL=n
CONFIG_CONSOLE=n 
CONFIG_UART_CONSOLE=n

CONFIG_ASSERT=y

CONFIG_SPI=y
CONFIG_SPI_NOR=y

CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_BMI270=y
CONFIG_BMI270_TRIGGER_GLOBAL_THREAD=y

CONFIG_ADC=y
CONFIG_ADC_NRFX_SAADC=y

CONFIG_BMM350=y
CONFIG_BMM350_TRIGGER_GLOBAL_THREAD=y  # or OWN_THREAD (see note below)

CONFIG_PM_DEVICE=y

CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y