2024-12-15 22:03:17 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2018 Nordic Semiconductor
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
|
|
|
|
#
|
2025-01-08 14:54:41 +00:00
|
|
|
CONFIG_NCS_APPLICATION_BOOT_BANNER_STRING="Trezor BLE Gateway"
|
|
|
|
|
2024-12-15 22:03:17 +00:00
|
|
|
CONFIG_CLOCK_CONTROL=y
|
|
|
|
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
|
|
|
|
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y
|
|
|
|
CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_PERIOD=4000
|
|
|
|
|
|
|
|
# Enable the UART driver
|
|
|
|
CONFIG_UART_ASYNC_API=y
|
|
|
|
CONFIG_NRFX_UARTE0=y
|
|
|
|
CONFIG_SERIAL=y
|
|
|
|
|
|
|
|
# Enable the SPI driver
|
|
|
|
CONFIG_SPI=y
|
|
|
|
CONFIG_NRFX_SPIM0=y
|
|
|
|
CONFIG_SOC_NRF52832_ALLOW_SPIM_DESPITE_PAN_58=y
|
|
|
|
|
|
|
|
CONFIG_GPIO=y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CONFIG_HEAP_MEM_POOL_SIZE=2048
|
|
|
|
|
2025-01-10 12:03:33 +00:00
|
|
|
# Enable system-wide Power Management
|
|
|
|
CONFIG_PM=y
|
|
|
|
CONFIG_PM_DEVICE=y
|
|
|
|
# (Optional) Enable device power management at runtime
|
|
|
|
CONFIG_PM_DEVICE_RUNTIME=y
|
|
|
|
CONFIG_POWEROFF=y
|
2024-12-15 22:03:17 +00:00
|
|
|
|
|
|
|
CONFIG_BT=y
|
|
|
|
CONFIG_BT_PERIPHERAL=y
|
2025-01-10 12:25:12 +00:00
|
|
|
CONFIG_BT_DEVICE_NAME="Trezor T3W1"
|
2024-12-15 22:03:17 +00:00
|
|
|
CONFIG_BT_DEVICE_APPEARANCE=833
|
|
|
|
CONFIG_BT_MAX_CONN=1
|
|
|
|
CONFIG_BT_MAX_PAIRED=8
|
|
|
|
CONFIG_BT_SMP=y
|
|
|
|
CONFIG_BT_SMP_ENFORCE_MITM=y
|
|
|
|
CONFIG_BT_SMP_SC_ONLY=y
|
|
|
|
CONFIG_BT_FILTER_ACCEPT_LIST=y
|
|
|
|
CONFIG_BT_BONDING_REQUIRED=y
|
|
|
|
CONFIG_BT_PRIVACY=y
|
|
|
|
CONFIG_BT_TINYCRYPT_ECC=y
|
|
|
|
CONFIG_BT_LL_SW_SPLIT=y
|
|
|
|
|
|
|
|
|
|
|
|
#PHY update needed for updating PHY request
|
|
|
|
CONFIG_BT_PHY_UPDATE=y
|
|
|
|
CONFIG_BT_USER_PHY_UPDATE=y
|
|
|
|
|
|
|
|
# HCI ACL buffers size
|
|
|
|
CONFIG_BT_BUF_ACL_RX_SIZE=251
|
|
|
|
|
|
|
|
# L2CAP SDU/PDU TX MTU
|
|
|
|
CONFIG_BT_L2CAP_TX_MTU=247
|
|
|
|
|
|
|
|
|
|
|
|
# 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 stack
|
|
|
|
CONFIG_MAIN_STACK_SIZE=1152
|
|
|
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
|
|
|
|
|
|
|
# NFC
|
|
|
|
CONFIG_NFCT_PINS_AS_GPIOS=y
|
|
|
|
|
|
|
|
CONFIG_POLL=y
|
|
|
|
|
|
|
|
|
|
|
|
# Config logger
|
2025-01-10 12:25:12 +00:00
|
|
|
CONFIG_LOG=n
|
2024-12-15 22:03:17 +00:00
|
|
|
CONFIG_UART_CONSOLE=n
|
|
|
|
CONFIG_LOG_BACKEND_UART=n
|
|
|
|
CONFIG_LOG_PRINTK=n
|
|
|
|
|
|
|
|
CONFIG_NANOPB=n
|
2024-12-18 08:58:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
# bootloader
|
|
|
|
#CONFIG_SECURE_BOOT=y
|
|
|
|
CONFIG_BOOTLOADER_MCUBOOT=y
|