Repository navigation
Expand file tree
/
Copy pathKconfig
More file actions
324 lines (263 loc) · 8.19 KB
/
Copy pathKconfig
File metadata and controls
324 lines (263 loc) · 8.19 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
#
# Copyright (c) 2023 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
config USE_SLIMENRF_CONSOLE
bool "Use basic console"
default y
help
Use basic console for commands.
config BATTERY_CHARGER_HAS_NTC
bool "Battery thermistor"
help
Flag for battery NTC thermistor availability.
choice
prompt "Battery voltage mapping"
default BATTERY_NO_MAPPING
config BATTERY_USE_REG_BUCK_MAPPING
bool "Use buck regulator mapping (3.7V battery, DCDC)"
help
Use a constant power mapping for battery voltage.
Preffered for systems with a buck regulator.
Measured at a system voltage of 3.0V.
config BATTERY_USE_REG_LDO_MAPPING
bool "Use LDO linear regulator mapping (3.7V battery, LDO)"
help
Use a constant current mapping for battery voltage.
Preferred for systems with a linear regulator.
config BATTERY_NO_MAPPING
bool "Disable battery voltage mapping"
help
Always map to 100% battery. Disables battery monitoring.
endchoice
config BATTERY_LOW_RUNTIME_THRESHOLD
int "Low battery runtime threshold (ms)"
default 10800000
help
Trigger low battery when estimated runtime falls below threshold.
If estimated runtime is not available, low battery will trigger under 10% estimated state of charge.
choice
prompt "Status LED color mapping"
default LED_TRI_COLOR
config LED_RGB_COLOR
bool "Use RGB color mapping"
help
Use RGB or RG color mapping for LED status if available.
config LED_TRI_COLOR
bool "Use default color mapping"
help
Use the default color mapping for LED status.
endchoice
menu "Status LED default status color"
depends on LED_RGB_COLOR
config LED_DEFAULT_COLOR_R
int "Red value"
range 0 10000
default 4000
depends on LED_RGB_COLOR
help
Red color for default status.
Valid range is 0 to 10000.
config LED_DEFAULT_COLOR_G
int "Green value"
range 0 10000
default 6000
depends on LED_RGB_COLOR
help
Green color for default status.
Valid range is 0 to 10000.
config LED_DEFAULT_COLOR_B
int "Blue value"
range 0 10000
default 0
depends on LED_RGB_COLOR
help
Blue color for default status.
Valid range is 0 to 10000.
endmenu
config USER_EXTRA_ACTIONS
bool "Multiple press actions"
help
Allow user to use multiple presses to calibrate, pair, or enter DFU.
By default, pairing is available when holding down sw0 for 5 seconds.
By default, DFU is available when holding down sw0 and plugging in a USB cable.
config IGNORE_RESET
bool "Ignore reset"
default y
help
If sw0 is available, don't perform any extra actions on reset.
config USER_SHUTDOWN
bool "User shutdown support"
default y
help
Allow user to use reset or sw0 to shutdown.
config USE_IMU_WAKE_UP
bool "IMU wake up support"
default y
help
Use IMU wake up state if IMU wake up is present.
config DELAY_SLEEP_ON_STATUS
bool "Delay IMU wake up mode on status flags"
default y
depends on USE_IMU_WAKE_UP
help
Delay IMU wake up state if there is an active status flag or in pairing mode.
config WOM_USE_DCDC
bool "Use DCDC in IMU wake up mode"
depends on USE_IMU_WAKE_UP
help
Use DCDC instead of LDO in IMU wake up state if it is more efficient.
config CONNECTION_TIMEOUT_DELAY
int "Connection timeout delay (ms)"
default 300000
depends on USER_SHUTDOWN
help
Connection timeout duration when receiver is not detected.
choice
prompt "Sensor rotation"
default SENSOR_ROTATION_90
config SENSOR_ROTATION_0
bool "0 degrees"
config SENSOR_ROTATION_90
bool "90 degrees"
config SENSOR_ROTATION_180
bool "180 degrees"
config SENSOR_ROTATION_270
bool "270 degrees"
config SENSOR_ROTATION_0_FLIPPED
bool "0 degrees flipped"
config SENSOR_ROTATION_90_FLIPPED
bool "90 degrees flipped"
config SENSOR_ROTATION_180_FLIPPED
bool "180 degrees flipped"
config SENSOR_ROTATION_270_FLIPPED
bool "270 degrees flipped"
endchoice
menu "Sensor power saving"
config SENSOR_LP_TIMEOUT
int "Sensor low power delay (ms)"
default 500
help
Low power timeout during no motion.
config SENSOR_USE_LOW_POWER_2
bool "Use additional low power modes"
help
Use a higher latency sensor mode during no motion.
config USE_IMU_TIMEOUT
bool "Use IMU wake up state"
default y
depends on USE_IMU_WAKE_UP
help
Use IMU wake up state during no motion.
config IMU_TIMEOUT_RAMP_MIN
int "Sensor timeout minimum delay (ms)"
default 5000
depends on USE_IMU_TIMEOUT || SENSOR_USE_LOW_POWER_2
help
Minimum timeout during no motion. Initial period on wake up.
config IMU_TIMEOUT_RAMP_MAX
int "Sensor timeout maximum delay (ms)"
default 15000
depends on USE_IMU_TIMEOUT || SENSOR_USE_LOW_POWER_2
help
Maximum timeout during no motion.
config USE_ACTIVE_TIMEOUT
bool "Use activity timeout"
default y
depends on USE_IMU_WAKE_UP || USER_SHUTDOWN
help
Delay IMU wake up state or user shutdown during activity.
choice
prompt "Activity timeout mode"
default SLEEP_ON_ACTIVE_TIMEOUT
depends on USE_ACTIVE_TIMEOUT
config SLEEP_ON_ACTIVE_TIMEOUT
bool "IMU wake up"
depends on USE_IMU_WAKE_UP
help
Use IMU wake up state when activity timeout elapses.
config SHUTDOWN_ON_ACTIVE_TIMEOUT
bool "User shutdown"
depends on USER_SHUTDOWN
help
Use user shutdown when activity timeout elapses.
endchoice
config ACTIVE_TIMEOUT_THRESHOLD
int "Activity timeout threshold (ms)"
default 15000
depends on USE_ACTIVE_TIMEOUT
help
Trigger activity timeout after a certain threshold of activity.
config ACTIVE_TIMEOUT_DELAY
int "Activity timeout delay (ms)"
default 900000
depends on USE_ACTIVE_TIMEOUT
help
Activity timeout duration when triggered.
endmenu
config SENSOR_ACCEL_ODR
int "Accelerometer output data rate (Hz)"
default 100
help
Requested accelerometer output data rate. Actual rate will be raised to the nearest supported rate.
A higher rate will increase the time to read and process sensor data.
config SENSOR_GYRO_ODR
int "Gyrometer output data rate (Hz)"
default 200
help
Requested gyrometer output data rate. Actual rate will be raised to the nearest supported rate.
A higher rate will increase the time to read and process sensor data.
A lower rate is recommended for IMUs with poor gyrometer rate noise density. (e.g. BMI270, LSM6DS3TR-C)
config SENSOR_ACCEL_FS
int "Accelerometer full scale (g)"
default 4
help
Requested accelerometer full scale. Actual scale will be raised to the nearest supported scale.
A lower scale may improve noise performance, but is more likely to saturate.
config SENSOR_GYRO_FS
int "Gyrometer full scale (dps)"
default 1000
help
Requested gyrometer full scale. Actual scale will be raised to the nearest supported scale.
A lower scale may improve noise performance, but is more likely to saturate.
config SENSOR_USE_MAG
bool "Magnetometer support"
default y
help
Use magnetometer if it is present.
config USE_SENSOR_CLOCK
bool "Use external IMU clock"
default y
help
Use external IMU clock if it is present.
choice
prompt "Sensor fusion"
default SENSOR_USE_VQF
help
Select the sensor fusion method.
config SENSOR_USE_VQF
bool "Use VQF"
help
Use VQF for sensor fusion.
Based on Kalman filter.
endchoice
config SENSOR_USE_6_SIDE_CALIBRATION
bool "Use 6-side calibration"
default y
depends on USE_SLIMENRF_CONSOLE
help
Use 6-side calibration for accelerometer.
Calibration can be completed through the basic console.
config RADIO_TX_POWER
int "Radio output power (dBm)"
default 8
help
Radio output power level.
A lower value may reduce power consumption.
config CONNECTION_OVER_HID
bool "Use HID for data output"
help
Use HID if available.
Otherwise, use ESB only.
source "Kconfig.zephyr"