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

# This sample uses Kconfig.defaults to set options common for all
# samples. This file should contain only options specific for this sample
# or overrides of default values.

# Enable CHIP
CONFIG_CHIP=y
CONFIG_CHIP_PROJECT_CONFIG="src/chip_project_config.h"
# 32774 == 0x8006 (example lock-app)
CONFIG_CHIP_DEVICE_PRODUCT_ID=32774
CONFIG_STD_CPP14=y

# Add support for LEDs and buttons on Nordic development kits
CONFIG_DK_LIBRARY=y

# Bluetooth Low Energy configuration
CONFIG_BT_DEVICE_NAME="MT_Lock"

# Suspend devices when the CPU goes into sleep
CONFIG_PM_DEVICE=y

# Other settings
CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
CONFIG_CHIP_LIB_SHELL=y

# Reduce application size
CONFIG_USE_SEGGER_RTT=n

# Enable Factory Data feature
CONFIG_CHIP_FACTORY_DATA=y
CONFIG_CHIP_FACTORY_DATA_BUILD=y

CONFIG_ADC=y
CONFIG_I2C=y
CONFIG_PWM=y
CONFIG_SPI=y
CONFIG_CHIP_QSPI_NOR=n
CONFIG_COUNTER=y
CONFIG_BOARD_ENABLE_DCDC_HV=n

CONFIG_BT_SMP=y
CONFIG_MBEDTLS=y

CONFIG_BT_DIS=y
CONFIG_BT_DIS_MODEL="KDM00"
CONFIG_BT_DIS_FW_REV=y
CONFIG_BT_DIS_FW_REV_STR="0.01"
CONFIG_BT_DIS_MANUF=""

CONFIG_PM=y
CONFIG_PM_DEVICE=y

CONFIG_EEPROM_AT25=y
CONFIG_EEPROM=y

CONFIG_LOCK_NUM_CREDENTIALS_PER_USER=5
CONFIG_LOCK_NUM_USERS=64
CONFIG_LOCK_NUM_CREDENTIALS=64
CONFIG_BT_COMPANY_ID=0x0CE3
CONFIG_BT_MAX_CONN=3
CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=3