forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprj_dongle.conf
More file actions
120 lines (90 loc) · 3.34 KB
/
Copy pathprj_dongle.conf
File metadata and controls
120 lines (90 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#
# Copyright (c) 2025 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
################################################################################
# debug: Dongle version
#
# This debug build type configuration acts as a dongle.
#
# Application Configuration
CONFIG_DESKTOP_INIT_LOG_HID_REPORT_EVENT=n
CONFIG_DESKTOP_INIT_LOG_HID_REPORT_SENT_EVENT=n
CONFIG_CAF_INIT_LOG_KEEP_ALIVE_EVENTS=n
CONFIG_DESKTOP_ROLE_HID_DONGLE=y
CONFIG_DESKTOP_DEVICE_PID=0x52DC
CONFIG_DESKTOP_HID_BOOT_INTERFACE_KEYBOARD=y
CONFIG_CAF_BUTTONS=y
CONFIG_CAF_BUTTONS_POLARITY_INVERSED=y
CONFIG_CAF_BUTTONS_PM_KEEP_ALIVE=n
CONFIG_CAF_CLICK_DETECTOR=y
CONFIG_CAF_LEDS=y
CONFIG_CAF_LEDS_GPIO=y
CONFIG_DESKTOP_USB_ENABLE=y
# Enable the only USB stack that supports USBHS
CONFIG_DESKTOP_USB_STACK_NEXT=y
# The LLPM must be explicitly enabled, as the Bluetooth Controller
# is not part of the main application.
CONFIG_CAF_BLE_USE_LLPM=y
CONFIG_DESKTOP_BLE_PEER_CONTROL=y
CONFIG_DESKTOP_BLE_PEER_CONTROL_BUTTON=0x0000
CONFIG_DESKTOP_BLE_NEW_PEER_SCAN_REQUEST=y
CONFIG_DESKTOP_BLE_NEW_PEER_SCAN_ON_BOOT=y
CONFIG_DESKTOP_BLE_PEER_ERASE=y
CONFIG_DESKTOP_CONFIG_CHANNEL_ENABLE=y
CONFIG_DESKTOP_CONFIG_CHANNEL_DFU_ENABLE=y
################################################################################
# Zephyr Configuration
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=3584
CONFIG_ISR_STACK_SIZE=2560
CONFIG_MAIN_STACK_SIZE=2816
CONFIG_BT_RX_STACK_SIZE=2048
CONFIG_BT_HCI_TX_STACK_SIZE_WITH_PROMPT=y
CONFIG_BT_HCI_TX_STACK_SIZE=1536
CONFIG_IDLE_STACK_SIZE=512
CONFIG_BOOT_BANNER=n
CONFIG_NCS_BOOT_BANNER=n
CONFIG_NUM_COOP_PRIORITIES=10
CONFIG_NUM_PREEMPT_PRIORITIES=15
CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_HW_STACK_PROTECTION=y
CONFIG_RESET_ON_FATAL_ERROR=n
CONFIG_GPIO=y
CONFIG_SPEED_OPTIMIZATIONS=y
CONFIG_REBOOT=y
CONFIG_LED=y
# The target uses GPIOs to control LEDs.
CONFIG_LED_GPIO=y
# Disable unused LED driver to reduce memory footprint.
CONFIG_LED_PWM=n
# The UDC DWC2 DMA support is experimental. Disable the feature to improve USB stability. Since nRF
# Desktop uses only small HID reports (size < 64 bytes), the DMA doesn't improve performance.
CONFIG_UDC_DWC2_DMA=n
CONFIG_BT_PRIVACY=y
CONFIG_BT_BUF_ACL_TX_SIZE=35
# Accepting any values for Bluetooth LE connection parameters must be explicitly enabled, as the
# Bluetooth Controller is not part of the main application.
CONFIG_BT_CONN_PARAM_ANY=y
CONFIG_STREAM_FLASH=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUBOOT_IMG_MANAGER=y
# Configure Zephyr system power management
CONFIG_PM=y
# Temporarily disable Link Time Optimization (LTO) to prevent linker warnings about the type
# mismatch (-Wlto-type-mismatch) that are caused by the device_deps.c file. The device_deps.c
# file is autogenerated and its generation is controlled by the CONFIG_DEVICE_DEPS Kconfig option.
# This file is required by the Zephyr domain driver to notify child devices in the domain to turn
# on or off when the domain itself is powered up or down.
CONFIG_LTO=n
CONFIG_ISR_TABLES_LOCAL_DECLARATION=n
# Enable code partitioning with DTS
CONFIG_USE_DT_CODE_PARTITION=y
################################################################################
# Debug logs configuration
CONFIG_ASSERT=y
CONFIG_ASSERT_LEVEL=2
# UART logging is one of two suggested ways of reading logs on nRF54H20DK.
CONFIG_DESKTOP_LOG=y
CONFIG_DESKTOP_LOG_UART=y
CONFIG_DESKTOP_LOG_RTT=n