#
# 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

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

CONFIG_HEAP_MEM_POOL_SIZE=2048

CONFIG_BT_CONN=y
CONFG_BT_HCI_HOST=y
CONFIG_BT_HCI=y

CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
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=n
CONFIG_LOG_BACKEND_RTT=n
CONFIG_LOG_BACKEND_UART=y

CONFIG_ASSERT=y

#JEFF copied from throughput sample>>>>>>>>>>>>>>>>>>>>>>>>>>>>

#CONFIG_BT_GATT_CLIENT=y
#CONFIG_BT_ATT_PREPARE_COUNT=2
#CONFIG_BT_CONN_TX_MAX=10
#CONFIG_BT_L2CAP_TX_BUF_COUNT=10
#CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y
#CONFIG_BT_CTLR_RX_BUFFERS=2
#CONFIG_BT_BUF_ACL_TX_COUNT=10

#JEFF task2 =>change name
CONFIG_BT_DEVICE_NAME="abcdefghijk"

#JEFF task4 => Change Tx power
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y

#JEFF task8 => Change PHY
CONFIG_BT_USER_PHY_UPDATE=y
CONFIG_BT_CTLR_PHY_2M=y

#JEFF task9 => Change pcaket size
CONFIG_BT_USER_DATA_LEN_UPDATE=y
CONFIG_BT_BUF_ACL_RX_SIZE=251
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
CONFIG_BT_L2CAP_TX_MTU=247

#JEFF task10 => Change connection interval
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=y
CONFIG_BT_CONN_PARAM_UPDATE_TIMEOUT=5000			
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=80		
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=80		
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=42		

#JEFF task11
CONFIG_BT_CTLR_CONN_RSSI=y







