106 lines
2.5 KiB
Plaintext
106 lines
2.5 KiB
Plaintext
CONFIG_ADC=y
|
|
|
|
# Enable MCUmgr and dependencies.
|
|
CONFIG_NET_BUF=y
|
|
CONFIG_ZCBOR=y
|
|
CONFIG_CRC=y
|
|
CONFIG_MCUMGR=y
|
|
CONFIG_STREAM_FLASH=y
|
|
CONFIG_FLASH_MAP=y
|
|
|
|
CONFIG_MCUBOOT_SIGNATURE_KEY_FILE="/home/nignux/Zephyr-dev/tuxpir/mykey.pem"
|
|
|
|
# Some command handlers require a large stack.
|
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2304
|
|
CONFIG_MAIN_STACK_SIZE=2048
|
|
|
|
# Ensure an MCUboot-compatible binary is generated.
|
|
CONFIG_BOOTLOADER_MCUBOOT=y
|
|
|
|
# Enable flash operations.
|
|
CONFIG_FLASH=y
|
|
|
|
# Required by the `taskstat` command.
|
|
CONFIG_THREAD_MONITOR=n
|
|
|
|
# Support for taskstat command
|
|
CONFIG_MCUMGR_GRP_OS_TASKSTAT=n
|
|
|
|
# Enable statistics and statistic names.
|
|
CONFIG_STATS=n
|
|
CONFIG_STATS_NAMES=n
|
|
|
|
# Enable most core commands.
|
|
CONFIG_FLASH=y
|
|
CONFIG_IMG_MANAGER=y
|
|
CONFIG_MCUMGR_GRP_IMG=y
|
|
CONFIG_MCUMGR_GRP_OS=y
|
|
CONFIG_MCUMGR_GRP_STAT=n
|
|
|
|
# Enable logging
|
|
CONFIG_LOG=y
|
|
CONFIG_MCUBOOT_UTIL_LOG_LEVEL_WRN=y
|
|
CONFIG_LOG_DEFAULT_LEVEL=2
|
|
CONFIG_LOG_MAX_LEVEL=3
|
|
CONFIG_LOG_PRINTK=y
|
|
|
|
CONFIG_LOG_BACKEND_BLE=y
|
|
CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=2048
|
|
|
|
#CONFIG_USE_SEGGER_RTT=y
|
|
CONFIG_LOG_BACKEND_RTT=n
|
|
CONFIG_UART_CONSOLE=n
|
|
#CONFIG_RTT_CONSOLE=y
|
|
CONFIG_STDOUT_CONSOLE=n
|
|
|
|
# Disable debug logging
|
|
CONFIG_BT=y
|
|
CONFIG_BT_PERIPHERAL=y
|
|
CONFIG_BT_DEVICE_NAME="TuxPIR"
|
|
|
|
# Allow for large Bluetooth data packets.
|
|
CONFIG_BT_L2CAP_TX_MTU=498
|
|
CONFIG_BT_BUF_ACL_RX_SIZE=502
|
|
CONFIG_BT_BUF_ACL_TX_SIZE=502
|
|
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
|
|
|
|
# Enable the Bluetooth mcumgr transport (unauthenticated).
|
|
CONFIG_MCUMGR_TRANSPORT_BT=y
|
|
CONFIG_MCUMGR_TRANSPORT_BT_AUTHEN=n
|
|
CONFIG_MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL=y
|
|
|
|
# Enable the Shell mcumgr transport.
|
|
CONFIG_BASE64=n
|
|
CONFIG_CRC=n
|
|
CONFIG_SHELL=n
|
|
CONFIG_SHELL_BACKEND_SERIAL=n
|
|
CONFIG_MCUMGR_TRANSPORT_SHELL=n
|
|
|
|
# Enable the mcumgr Packet Reassembly feature over Bluetooth and its configuration dependencies.
|
|
# MCUmgr buffer size is optimized to fit one SMP packet divided into five Bluetooth Write Commands,
|
|
# transmitted with the maximum possible MTU value: 498 bytes.
|
|
CONFIG_MCUMGR_TRANSPORT_BT_REASSEMBLY=y
|
|
CONFIG_MCUMGR_TRANSPORT_NETBUF_SIZE=2475
|
|
CONFIG_MCUMGR_GRP_OS_MCUMGR_PARAMS=y
|
|
CONFIG_MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE=4608
|
|
|
|
# Enable the LittleFS file system.
|
|
CONFIG_FILE_SYSTEM=n
|
|
CONFIG_FILE_SYSTEM_LITTLEFS=n
|
|
|
|
# Enable file system commands
|
|
CONFIG_MCUMGR_GRP_FS=n
|
|
|
|
# Enable the storage erase command.
|
|
CONFIG_MCUMGR_GRP_ZBASIC=n
|
|
CONFIG_MCUMGR_GRP_ZBASIC_STORAGE_ERASE=n
|
|
|
|
# Disable Bluetooth ping support
|
|
CONFIG_BT_CTLR_LE_PING=n
|
|
|
|
# Disable shell commands that are not needed
|
|
CONFIG_CLOCK_CONTROL_NRF_SHELL=n
|
|
CONFIG_DEVICE_SHELL=n
|
|
CONFIG_DEVMEM_SHELL=n
|
|
CONFIG_FLASH_SHELL=n
|