-
Notifications
You must be signed in to change notification settings - Fork 2
/
Kconfig
384 lines (278 loc) · 7.41 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
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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
# General configuration options
mainmenu "tbeamLoRa configuration"
menu "General options"
config SERIAL_BAUD
int "Baud rate"
help
Serial monitor baud rate
default 115200
config SEND_INTERVAL
int "Time interval for sending data (ms)"
help
Sleep for these many ms
default 300000
config LOGO_DELAY
int "Initial logo delay (ms)"
help
Time to show logo on first boot (in ms)
default 5000
config BUTTON_PIN
int "Pin number of action button"
help
Do not modify, board-specific
default 38
choice LED_MODE
bool "Led blink"
help
Set blue led mode
config LED_OFF
bool "Turn off the LED"
config LED_BLINK
bool "Blink LED, 1s period"
endchoice
config I2C_SDA
int "Pin number of I2C's SDA"
help
Do not modify, board-specific
default 21
config I2C_SCL
int "Pin number of I2C's SCL"
help
Do not modify, board-specific
default 22
config AXP192_ADDR
hex "Address of AXP192"
help
Do not modify, board-specific
default 0x34
config SPS30_ADDR
hex "Address of SPS30"
help
I2C addr of the SPS30, notouchy
default 0x69
choice BME680_LIB
bool "BME680 library"
help
Set the library to use for the BME680 sensor
config BME680_ADAFRUIT
bool "Adafruit library"
config BME680_BOSCH
bool "Bosch BSEC library"
endchoice
config HAS_SEN0170
bool "Want SEN0170"
help
Choose if you want the SEN0170 wind sensor
default True
config HAS_LPPYRA03AV
bool "Want LPPYRA03AV"
help
Choose if you want the LPPYRA03AV pyranometer
default True
endmenu
menu "AXP192 PMU options"
config DCDC1_DEVICE
string "DCDC1 device"
help
Name of the device connected to the first switch-mode DCDC converter of the AXP192
default "BME680"
config PMU_IRQ
int "PMU IRQ pin"
help
Do not modify, board-specific
default 35
endmenu
menu "CayenneLPP configuration"
config MAX_PAYLOAD
int "Max payload (bytes)"
default 200
endmenu
menu "Channels configuration"
menu "BME680 channels"
config CHAN_BME680_TEMP
int "Temperature"
default 1
config CHAN_BME680_AVGTEMP
int "Average temperature"
default 2
config CHAN_BME680_PRESS
int "Pressure"
default 3
config CHAN_BME680_GAS
int "Gas resistance"
default 4
config CHAN_BME680_HUM
int "Humidity"
default 5
config CHAN_BME680_ALT
int "Estimated altitude"
default 6
endmenu
menu "SEN0170 channels"
config CHAN_SEN0170_WIND
int "Wind speed"
default 7
endmenu
menu "LPPYRA03AV channels"
config CHAN_LPPYRA03AV_IRRAD
int "Irradiance"
default 8
endmenu
menu "SPS30 channels"
config CHAN_SPS30_PM1Ugm3
int "PM1Ugm3 channel"
default 9
config CHAN_SPS30_PM2Ugm3
int "PM2Ugm3 channel"
default 10
config CHAN_SPS30_PM4Ugm3
int "PM4Ugm3 channel"
default 11
config CHAN_SPS30_PM10Ugm3
int "PM10Ugm3 channel"
default 12
config CHAN_SPS30_PM0Particlem3
int "PM0Particlem3 channel"
default 13
config CHAN_SPS30_PM1Particlem3
int "PM1Particlem3 channel"
default 14
config CHAN_SPS30_PM2Particlem3
int "PM2Particlem3 channel"
default 15
config CHAN_SPS30_PM4Particlem3
int "PM4Particlem3 channel"
default 16
config CHAN_SPS30_PM10Particlem3
int "PM10Particlem3 channel"
default 17
config CHAN_SPS30_PMAverageUm
int "PMAverageUm channel"
default 18
endmenu
menu "GPS channels"
config CHAN_GPS
int "GPS"
default 19
endmenu
endmenu
menu "GPS configuration"
config GPS_SERIAL_NUM
int "GPS serial port number"
help
Number of GPS serial port (e.g. Serial1 ecc)
default 1
config GPS_BAUDRATE
int "Baud rate of GPS serial port"
help
Baud rate of GPS serial port
default 9600
config GPS_RX_PIN
int "GPS serial RX pin"
help
Don't edit, board specific
default 34
config GPS_TX_PIN
int "GPS serial TX pin"
help
Don't edit, board specific
default 12
config GPS_WAIT_FOR_LOCK
int "Wait for GPS lock (ms)"
help
Milliseconds to wait for GPS lock
default 10000000
endmenu
menu "LoRa configuration"
menu "LoRa module SPI configuration"
config SCK_GPIO
int "LoRa SPI SCK pin"
help
Don't edit, board specific
default 5
config MISO_GPIO
int "LoRa SPI MISO pin"
help
Don't edit, board specific
default 19
config MOSI_GPIO
int "LoRa SPI MOSI pin"
help
Don't edit, board specific
default 27
config NSS_GPIO
int "LoRa SPI NSS pin"
help
Don't edit, board specific
default 18
endmenu
config RESET_GPIO
int "LoRa module reset pin"
help
Don't edit, board specific
default 14
config DIO0_GPIO
int "LoRa DIO0 pin"
help
Don't edit, board specific
default 26
config DIO1_GPIO
int "LoRa DIO1 pin"
help
Don't edit, board specific
default 33
config DIO2_GPIO
int "LoRa DIO2 pin"
help
Don't edit, board specific
default 32
config LORAWAN_PORT
int "LoRaWAN port"
help
Port msgs will be sent to
default 10
config LORA_SPREADING_FACTOR
int "LoRa spreading factor"
help
LoRa spreading factor
default 5
config LORA_TX_POW
int "LoRa transmit power"
help
"LoRa transmit power"
default 14
config LORA_ADR
bool "Enable Adaptive Data Rate (ADR)"
default True
endmenu
menu "SPS30 sensor configuration"
config SPS30_CLEAN_NOW
bool "Fan cleaning at each measurement"
help
Fan cleaning at each measurement
default True
endmenu
menu "SEN0170 sensor configuration"
config SEN0170_PIN
int "ADC pin to the SEN0170"
default 23
endmenu
menu "LPPYRA03AV pyranometer configuration"
config LPPYRA03AV_PIN
int "ADC pin to the LPPYRA03AV"
default 4
endmenu
menu "BME680 sensor configuration"
config BME680_TEMP_MV_AVG
int "Depth of the moving average on temp"
default 5
config SEALEVELPRESSURE_HPA
int "Pressure at sea level (hPa)"
default 1013
config BME680_ADDR1
hex "I2C primary address of BME680"
default 0x76
config BME680_ADDR2
hex "I2C secondary address of BME680"
default 0x77
endmenu