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

CONFIG_SERIAL=n
CONFIG_UART_CONSOLE=n
#CONFIG_LOG=n

CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n
CONFIG_LOG_PRINTK=n

CONFIG_BT=y
CONFIG_BT_CTLR=y
CONFIG_BT_RPC_STACK=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_PERIOD=4000
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
CONFIG_CLOCK_CONTROL=y
CONFIG_BT_HCI=y
CONFIG_BT_HCI_VS_EVT_USER=y
CONFIG_HEAP_MEM_POOL_SIZE=65536

CONFIG_BT_PERIPHERAL=y

CONFIG_UART_0_NRF_TX_BUFFER_SIZE=244
CONFIG_BT_USER_DATA_LEN_UPDATE=y
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=y
# CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=y
CONFIG_BT_CTLR_SDC_MAX_CONN_EVENT_LEN_DEFAULT=7500
CONFIG_BT_CTLR_SDC_CONN_EVENT_EXTEND_DEFAULT=y
CONFIG_BT_LL_SOFTDEVICE=y

CONFIG_TICKLESS_KERNEL=y
CONFIG_NUM_COOP_PRIORITIES=15
CONFIG_MAIN_THREAD_PRIORITY=0
CONFIG_BT_GATT_DYNAMIC_DB=y


CONFIG_BT_GATT_AUTO_UPDATE_MTU=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_DM_MAX_ATTRS=247

CONFIG_BT_CTLR_PHY_2M=y
CONFIG_BT_USER_PHY_UPDATE=y
CONFIG_BT_MAX_CONN=8
CONFIG_BT_CTLR_RX_BUFFERS=18

CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP=y
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
CONFIG_BT_BUF_ACL_TX_SIZE=502
CONFIG_BT_BUF_ACL_RX_SIZE=502

CONFIG_BT_L2CAP_TX_MTU=247
CONFIG_TICKLESS_KERNEL=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=3000

CONFIG_BT_ATT_PREPARE_COUNT=5
CONFIG_BT_L2CAP_TX_BUF_COUNT=32

CONFIG_BT_CONN_TX_MAX=10
CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y

CONFIG_BT_BUF_ACL_TX_COUNT=8
CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS=y

CONFIG_BT_PERIPHERAL_PREF_MIN_INT=6
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=6
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=30

CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_MBOX=y
CONFIG_IPC_SERVICE=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_CTLR_ASSERT_HANDLER=y
CONFIG_ASSERT=y
CONFIG_DEBUG_INFO=y
CONFIG_EXCEPTION_STACK_TRACE=y

CONFIG_IPC_RADIO_BT=y
CONFIG_IPC_RADIO_BT_HCI_IPC=y