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

# AES
CONFIG_NRF_SECURITY=y
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_MBEDTLS_HEAP_SIZE=8192

# BT
CONFIG_BT=y
CONFIG_BT_BONDABLE=n
CONFIG_BT_DEVICE_NAME="Zephyr Bluetooth device"
CONFIG_BT_FIXED_PASSKEY=y
CONFIG_BT_GATT_AUTO_SEC_REQ=y
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_PAIRED=1
CONFIG_BT_NUS=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_SETTINGS=y
CONFIG_BT_SMP=y
CONFIG_BT_BUF_ACL_RX_SIZE=251
CONFIG_BT_ATT_PREPARE_COUNT=2
CONFIG_BT_L2CAP_TX_MTU=247
CONFIG_BT_BUF_ACL_TX_COUNT=10
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
CONFIG_BT_CTLR_RX_BUFFERS=2



# debug
CONFIG_DEBUG=n

# flash
CONFIG_FLASH=y
CONFIG_FLASH_JESD216_API=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

# GPIO
CONFIG_GPIO=y
CONFIG_NFCT_PINS_AS_GPIOS=y
CONFIG_NRFX_GPIOTE=y
CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS=2

# I2C
CONFIG_I2C=y
CONFIG_I2C_NRFX=y

# logging
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=2
CONFIG_LOG_MODE_DEFERRED=n
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n
CONFIG_PRINTK=y
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=2048
CONFIG_USE_SEGGER_RTT=y

# NVS
CONFIG_NVS=y
CONFIG_NVS_LOG_LEVEL_DBG=y

# power saving
CONFIG_PM=y


# SPI
CONFIG_SPI=y
CONFIG_SPI_NOR=y


