Skip to content

Commit 219c7c8

Browse files
pdunajMarekPieta
authored andcommitted
applications: nrf_desktop: Separate event logging Kconfig menu
Change separates event logging Kconfig options to a separate Kconfig menu. Jira: NCSDK-33592 Signed-off-by: Pawel Dunaj <[email protected]> Co-authored-by: Marek Pieta <[email protected]>
1 parent ca2ea0d commit 219c7c8

File tree

2 files changed

+124
-113
lines changed

2 files changed

+124
-113
lines changed
Lines changed: 3 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,11 @@
11
#
2-
# Copyright (c) 2019 Nordic Semiconductor
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
33
#
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
if LOG
7+
menu "Application events"
88

9-
menu "Event options"
10-
11-
comment "Initially logged events"
12-
13-
config DESKTOP_INIT_LOG_BATTERY_STATE_EVENT
14-
bool "Log battery state events"
15-
default y
16-
help
17-
Log battery state events in nRF Desktop application.
18-
19-
config DESKTOP_INIT_LOG_BATTERY_LEVEL_EVENT
20-
bool "Log battery level events"
21-
default y
22-
help
23-
Log battery level events in nRF Desktop application.
24-
25-
config DESKTOP_INIT_LOG_BLE_DISC_COMPLETE_EVENT
26-
bool "Log Bluetooth LE discovery complete events"
27-
default y
28-
help
29-
Log Bluetooth LE discovery complete events in nRF Desktop application.
30-
31-
config DESKTOP_INIT_LOG_BLE_QOS_EVENT
32-
bool "Log Bluetooth LE QoS events"
33-
default y
34-
help
35-
Log Bluetooth LE QoS events in nRF Desktop application.
36-
37-
config DESKTOP_INIT_LOG_BLE_DONGLE_PEER_EVENT
38-
bool "Log Bluetooth dongle peer event"
39-
default y
40-
help
41-
Log Bluetooth dongle peer event in nRF Desktop application.
42-
43-
config DESKTOP_INIT_LOG_CPU_LOAD_EVENT
44-
bool "Log CPU load events"
45-
depends on DESKTOP_CPU_MEAS_ENABLE
46-
default y
47-
help
48-
Log CPU load events in nRF Desktop application.
49-
50-
config DESKTOP_INIT_LOG_SELECTOR_EVENT
51-
bool "Log selector events"
52-
default y
53-
help
54-
Log selector events in nRF Desktop application.
55-
56-
config DESKTOP_INIT_LOG_PASSKEY_EVENT
57-
bool "Log passkey events"
58-
default y
59-
help
60-
Log passkey events in nRF Desktop application.
61-
62-
config DESKTOP_INIT_LOG_CONFIG_EVENT
63-
bool "Log config events"
64-
depends on DESKTOP_CONFIG_CHANNEL_ENABLE
65-
default y
66-
help
67-
Log config events in nRF Desktop application.
68-
69-
config DESKTOP_INIT_LOG_HID_SUBSCRIBER_EVENT
70-
bool "Log HID report subscriber events"
71-
default y
72-
help
73-
Log HID report subscriber events in nRF Desktop application.
74-
75-
config DESKTOP_INIT_LOG_HID_SUBSCRIPTION_EVENT
76-
bool "Log HID report subscription events"
77-
default y
78-
help
79-
Log HID report subscription events in nRF Desktop application.
80-
81-
config DESKTOP_INIT_LOG_HID_REPORT_EVENT
82-
bool "Log HID report events"
83-
default y
84-
help
85-
Log HID report events in nRF Desktop application.
86-
87-
config DESKTOP_INIT_LOG_HID_REPORT_SENT_EVENT
88-
bool "Log HID report sent events"
89-
default y
90-
help
91-
Log HID report sent events in nRF Desktop application.
92-
93-
config DESKTOP_INIT_LOG_MOTION_EVENT
94-
bool "Log motion events"
95-
default y
96-
help
97-
Log motion events in nRF Desktop application.
98-
99-
config DESKTOP_INIT_LOG_USB_STATE_EVENT
100-
bool "Log USB state events"
101-
depends on DESKTOP_USB_ENABLE
102-
default y
103-
help
104-
Log USB state events in nRF Desktop application.
105-
106-
config DESKTOP_INIT_LOG_WHEEL_EVENT
107-
bool "Log wheel events"
108-
default y
109-
help
110-
Log wheel events in nRF Desktop application.
111-
112-
config DESKTOP_INIT_LOG_HID_NOTIFICATION_EVENT
113-
bool "Log HID notification events"
114-
depends on DESKTOP_HIDS_ENABLE
115-
default y
116-
help
117-
Log HID notification events in nRF Desktop application.
9+
rsource "Kconfig.log"
11810

11911
endmenu
120-
121-
endif
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
#
2+
# Copyright (c) 2019 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
if LOG
8+
9+
menu "Event logging options"
10+
11+
comment "Initially logged events"
12+
13+
config DESKTOP_INIT_LOG_BATTERY_STATE_EVENT
14+
bool "Log battery state events"
15+
default y
16+
help
17+
Log battery state events in nRF Desktop application.
18+
19+
config DESKTOP_INIT_LOG_BATTERY_LEVEL_EVENT
20+
bool "Log battery level events"
21+
default y
22+
help
23+
Log battery level events in nRF Desktop application.
24+
25+
config DESKTOP_INIT_LOG_BLE_DISC_COMPLETE_EVENT
26+
bool "Log Bluetooth LE discovery complete events"
27+
default y
28+
help
29+
Log Bluetooth LE discovery complete events in nRF Desktop application.
30+
31+
config DESKTOP_INIT_LOG_BLE_QOS_EVENT
32+
bool "Log Bluetooth LE QoS events"
33+
default y
34+
help
35+
Log Bluetooth LE QoS events in nRF Desktop application.
36+
37+
config DESKTOP_INIT_LOG_BLE_DONGLE_PEER_EVENT
38+
bool "Log Bluetooth dongle peer event"
39+
default y
40+
help
41+
Log Bluetooth dongle peer event in nRF Desktop application.
42+
43+
config DESKTOP_INIT_LOG_CPU_LOAD_EVENT
44+
bool "Log CPU load events"
45+
depends on DESKTOP_CPU_MEAS_ENABLE
46+
default y
47+
help
48+
Log CPU load events in nRF Desktop application.
49+
50+
config DESKTOP_INIT_LOG_SELECTOR_EVENT
51+
bool "Log selector events"
52+
default y
53+
help
54+
Log selector events in nRF Desktop application.
55+
56+
config DESKTOP_INIT_LOG_PASSKEY_EVENT
57+
bool "Log passkey events"
58+
default y
59+
help
60+
Log passkey events in nRF Desktop application.
61+
62+
config DESKTOP_INIT_LOG_CONFIG_EVENT
63+
bool "Log config events"
64+
depends on DESKTOP_CONFIG_CHANNEL_ENABLE
65+
default y
66+
help
67+
Log config events in nRF Desktop application.
68+
69+
config DESKTOP_INIT_LOG_HID_SUBSCRIBER_EVENT
70+
bool "Log HID report subscriber events"
71+
default y
72+
help
73+
Log HID report subscriber events in nRF Desktop application.
74+
75+
config DESKTOP_INIT_LOG_HID_SUBSCRIPTION_EVENT
76+
bool "Log HID report subscription events"
77+
default y
78+
help
79+
Log HID report subscription events in nRF Desktop application.
80+
81+
config DESKTOP_INIT_LOG_HID_REPORT_EVENT
82+
bool "Log HID report events"
83+
default y
84+
help
85+
Log HID report events in nRF Desktop application.
86+
87+
config DESKTOP_INIT_LOG_HID_REPORT_SENT_EVENT
88+
bool "Log HID report sent events"
89+
default y
90+
help
91+
Log HID report sent events in nRF Desktop application.
92+
93+
config DESKTOP_INIT_LOG_MOTION_EVENT
94+
bool "Log motion events"
95+
default y
96+
help
97+
Log motion events in nRF Desktop application.
98+
99+
config DESKTOP_INIT_LOG_USB_STATE_EVENT
100+
bool "Log USB state events"
101+
depends on DESKTOP_USB_ENABLE
102+
default y
103+
help
104+
Log USB state events in nRF Desktop application.
105+
106+
config DESKTOP_INIT_LOG_WHEEL_EVENT
107+
bool "Log wheel events"
108+
default y
109+
help
110+
Log wheel events in nRF Desktop application.
111+
112+
config DESKTOP_INIT_LOG_HID_NOTIFICATION_EVENT
113+
bool "Log HID notification events"
114+
depends on DESKTOP_HIDS_ENABLE
115+
default y
116+
help
117+
Log HID notification events in nRF Desktop application.
118+
119+
endmenu
120+
121+
endif # LOG

0 commit comments

Comments
 (0)