-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathKconfig
226 lines (184 loc) · 5.58 KB
/
Kconfig
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
#
# Copyright (c) 2023 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
source "Kconfig.zephyr"
menu "SlimeNRF"
config USE_SLIMENRF_CONSOLE
bool "Use basic console"
default y
help
Use basic console for commands.
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
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
config IGNORE_RESET
bool "Ignore reset"
default y
help
If sw0 is available, don't change any reset behavior.
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.
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 1000
depends on USE_IMU_TIMEOUT || SENSOR_USE_LOW_POWER_2
help
Minimum timeout during no motion.
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 200
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 500
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.
400Hz is recommended for IMUs with poor gyrometer rate noise density. (Ex. BMI270, LSM6DS3TR-C)
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_XIOFUSION
bool "Use x-io Technologies Fusion"
help
Use x-io Technologies Fusion for sensor fusion.
Based on Madgwick filter.
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.
endmenu