73 lines
1.8 KiB
Plaintext
73 lines
1.8 KiB
Plaintext
#
|
|
# Copyright (c) 2020 Nordic Semiconductor ASA
|
|
#
|
|
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
|
|
#
|
|
CONFIG_NCS_SAMPLES_DEFAULTS=y
|
|
|
|
# Deferred logging helps improve LPN power consumption
|
|
# when friendship is established.
|
|
CONFIG_LOG_MODE_DEFERRED=y
|
|
|
|
# General configuration
|
|
CONFIG_NCS_APPLICATION_BOOT_BANNER_STRING="Mesh Chat"
|
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
|
|
CONFIG_FLASH=y
|
|
CONFIG_FLASH_MAP=y
|
|
CONFIG_NVS=y
|
|
CONFIG_SETTINGS=y
|
|
CONFIG_NVS_LOOKUP_CACHE=y
|
|
CONFIG_SETTINGS_NVS_NAME_CACHE=y
|
|
CONFIG_HWINFO=y
|
|
CONFIG_DK_LIBRARY=y
|
|
CONFIG_PM_SINGLE_IMAGE=y
|
|
CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE=0x8000
|
|
CONFIG_SOC_FLASH_NRF_PARTIAL_ERASE=y
|
|
|
|
# Bluetooth configuration
|
|
CONFIG_BT=y
|
|
CONFIG_BT_DEVICE_NAME="Mesh Chat"
|
|
CONFIG_BT_L2CAP_TX_BUF_COUNT=8
|
|
CONFIG_BT_OBSERVER=y
|
|
CONFIG_BT_PERIPHERAL=y
|
|
CONFIG_BT_SETTINGS=y
|
|
|
|
# Disable unused Bluetooth features
|
|
CONFIG_BT_CTLR_LE_ENC=n
|
|
CONFIG_BT_PHY_UPDATE=n
|
|
CONFIG_BT_CTLR_MIN_USED_CHAN=n
|
|
CONFIG_BT_CTLR_PRIVACY=n
|
|
|
|
# Bluetooth Mesh configuration
|
|
CONFIG_BT_MESH=y
|
|
CONFIG_BT_MESH_RELAY=y
|
|
CONFIG_BT_MESH_FRIEND=y
|
|
CONFIG_BT_MESH_RX_SEG_MAX=22
|
|
CONFIG_BT_MESH_TX_SEG_MAX=22
|
|
CONFIG_BT_MESH_CHAT_CLI_MESSAGE_LENGTH=255
|
|
CONFIG_BT_MESH_PB_GATT=y
|
|
CONFIG_BT_MESH_GATT_PROXY=y
|
|
CONFIG_BT_MESH_DK_PROV=y
|
|
|
|
# Enable Bluetooth Mesh models debug logs
|
|
CONFIG_BT_MESH_LOG_LEVEL_DBG=y
|
|
|
|
# Enable Shell module and use UART as a backend
|
|
CONFIG_SHELL=y
|
|
CONFIG_SHELL_BACKEND_SERIAL=y
|
|
CONFIG_FLASH_SHELL=n
|
|
|
|
CONFIG_LOG_BACKEND_RTT=n
|
|
|
|
# configure 21540dk and enable MPSL and FEM
|
|
CONFIG_MPSL=y
|
|
CONFIG_MPSL_FEM=y
|
|
CONFIG_FEM=y # not set for nrf21540dk
|
|
CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=y
|
|
CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
|
|
# CONFIG_BT_CTLR_TX_PWR_DBM=0 // not set for nrf21540dk
|
|
CONFIG_BT_CTLR_TX_PWR_ANTENNA=20
|
|
|
|
CONFIG_MPSL_FEM_POWER_MODEL=y
|
|
CONFIG_MPSL_FEM_POWER_MODEL_NRF21540_USE_BUILTIN=y
|