
# SPI #################################
CONFIG_SPI=y
CONFIG_SPI_NRFX=y
CONFIG_SPI_SLAVE=y
CONFIG_NRFX_SPIS=y
CONFIG_NRFX_SPIS0=y

# POWER ###############################
CONFIG_BOARD_ENABLE_DCDC_APP=y
CONFIG_BOARD_ENABLE_DCDC_NET=y
CONFIG_BOARD_ENABLE_DCDC_HV=n

# GPIO ################################
CONFIG_GPIO=y

# MEMORY ##############################
CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_DEBUG_OPTIMIZATIONS=n #<------------------------------ turned off 4/8/2024 csc
# This example requires more workqueue stack
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

# FLASH ###############################
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=n
CONFIG_MPU_ALLOW_FLASH_WRITE=y

# BLUETOOTH ###########################
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME="DeviceName"
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_MAX_CONN=3
CONFIG_BT_MAX_PAIRED=1
CONFIG_BT_EXT_ADV=y
CONFIG_BT_USER_PHY_UPDATE=y
CONFIG_BT_HCI=y
CONFIG_BT_HCI_VS_EXT=y

# Extends the L2CAP MTU
CONFIG_BT_HCI_ACL_FLOW_CONTROL=y
CONFIG_BT_BUF_ACL_RX_SIZE=247
CONFIG_BT_L2CAP_TX_MTU=247

# Configure the central/scanner Bluetooth behavior
CONFIG_BT_CENTRAL=y
CONFIG_BT_SCAN=y
# CONFIG_BT_SMP=y
CONFIG_BT_SCAN_FILTER_ENABLE=y
CONFIG_BT_SCAN_ADDRESS_CNT=2

# Enable the NUS service
CONFIG_BT_NUS=y
CONFIG_BT_NUS_CLIENT=y
CONFIG_BT_GATT_DM=y
CONFIG_BT_GATT_CLIENT=y

###########################################################
# DEBUG MODE: Uncomment this group for debug UART
###########################################################
CONFIG_PRINTK=y
CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
###########################################################

# ------ OR -------

###########################################################
# LOW POWER MODE: Uncomment this group for production mode
###########################################################
# CONFIG_SERIAL=n
# CONFIG_PRINTK=n
# CONFIG_LOG=n
# CONFIG_PM=y
# CONFIG_PM_DEVICE=y
# CONFIG_CONSOLE=n
# CONFIG_UART_CONSOLE=n
###########################################################





###############################################################################################
# UNUSED / OLD
###############################################################################################
# CONFIG_BT_CTLR=y
# CONFIG_BT_DATA_LEN_UPDATE=y
# CONFIG_BT_CTLR_DATA_LEN_UPDATE_SUPPORT=y
# CONFIG_BT_CTLR_DATA_LENGTH=y
# CONFIG_BT_CTLR_DATA_LENGTH_MAX=234

#CONFIG_BT_CTLR_ADVANCED_FEATURES=y
# Reading RSSI successfully without this. CONFIG_BT_CTLR_CONN_RSSI=y
# Controlling and reading power successfully without this. CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y

# Disable bonding (this interferes with our use of the NVS system and the spec doesn't mention bonding)
#CONFIG_BT_SETTINGS=n