-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathKconfig
534 lines (454 loc) · 11.5 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
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
menu "RevK"
config REVK_APPNAME
string "Override app name"
default ""
help
Default app name to use
config REVK_PREFIXAPP
bool "MQTT uses appname as a prefix"
default y
help
Use appname/ in front of hostname in MQTT topics
config REVK_PREFIXHOST
bool "MQTT uses hostname primary topic"
default n
help
Use (appname/)hostname as primary MQTT topic followed by the usual prefix (command/status, etc)
config REVK_BLINK_SUPPORT
bool "LED blinking support"
default y
help
If blinking supported at all, including blink[3] setting
config REVK_BLINK_DEF
bool "Blink LED settings in library settings"
default y
depends on REVK_BLINK_SUPPORT
help
If blinking defined in library settings.
config REVK_BLINK_LIB
bool "Blink LED update done in library"
default y
depends on REVK_BLINK_SUPPORT
help
If blinking done in library, else revk_blinker() provides RGB colour to update.
config REVK_BLINK
string "Blink GPIOs"
default ""
depends on REVK_BLINK_LIB
help
One or more (space separated) LED GPIOs
config REVK_LED_STRIP
bool "LED strip support functions"
default n
help
Support LED strip for status LED - set by build system if led_strip managed_component is present
config REVK_RGB_MAX_R
int "Max red"
default 160
depends on REVK_LED_STRIP
help
Max level for RED LED in RGB strip
config REVK_RGB_MAX_G
int "Max green"
default 130
depends on REVK_LED_STRIP
help
Max level for GREEN LED in RGB strip
config REVK_RGB_MAX_B
int "Max blue"
default 250
depends on REVK_LED_STRIP
help
Max level for BLUE LED in RGB strip
config REVK_WATCHDOG
int "Watchdog time"
default 60
help
Seconds
config REVK_WIFI
bool "Manage WiFi client"
default y
help
Manage client WiFi
config REVK_MESH
bool "Mesh WiFi mode"
default n
depends on !REVK_WIFI
help
Enable WiFi Mesh operation
config REVK_MESHRESET
int "Reset if we are offline too long"
default 3600
depends on REVK_MESH
help
Number of seconds for mesh root with no IP before reset
config REVK_MESHID
string "Mesh ID (6 byte hex)"
default ""
depends on REVK_MESH
help
Mesh network ID (12 characters hex)
config REVK_MESHPASS
string "Mesh network passphrase"
default ""
depends on REVK_MESH
help
Mesh network passphrase
config REVK_MESHWIDTH
int "Mesh network connections per node"
default 10
depends on REVK_MESH
help
Mesh network connections per node
config REVK_MESHDEPTH
int "Mesh network max depth"
default 10
depends on REVK_MESH
help
Mesh network connections max depth
config REVK_MESHMAX
int "Mesh max capacity"
default 100
depends on REVK_MESH
help
Total nodes allowed
config REVK_MESHLR
bool "Mesh LR mode"
default n
depends on REVK_MESH
help
Run mesh in LR mode
config REVK_WIFISSID
string "Default WiFi SSID"
default "IoT"
depends on REVK_WIFI || REVK_MESH
help
This defines the factory reset default WiFi SSID
config REVK_WIFIPASS
string "Default WiFi passphrase"
default "security"
depends on REVK_WIFI || REVK_MESH
help
This defines the factory reset default WiFi passphrase
config REVK_WIFIBSSID
string "Default WiFi BSSID (6 bytes)"
default ""
depends on REVK_WIFI || REVK_MESH
help
This defines the factory reset default WiFi BSSID (hex 12 characters)
config REVK_WIFICHAN
int "WiFi channel"
default 0
depends on REVK_WIFI || REVK_MESH
help
This defines the factory reset WiFi channel
config REVK_WIFIIP
string "Default WiFi Static IP"
default ""
depends on REVK_WIFI || REVK_MESH
help
This defines the factory reset default WiFi client static IP / CIDR
config REVK_WIFIGW
string "Default WiFi Static gateway"
default ""
depends on REVK_WIFI || REVK_MESH
help
This defines the factory reset default WiFi client static gateway
config REVK_WIFIDNS
string "Default WiFi DNS"
default ""
depends on REVK_WIFI || REVK_MESH
help
This defines the factory reset default WiFi client DNS
config REVK_WIFIRESET
int "Reset if we are offline too long"
default 3600
depends on REVK_WIFI || REVK_MESH
help
Number of seconds off line before we completely reset
config REVK_WIFIUPTIME
int "Turn off WiFi after this time"
default 0
depends on REVK_WIFI || REVK_MESH
help
Number of seconds before WIFI auto turns off
config REVK_WIFIPS
bool "WiFi power save"
default n
depends on REVK_WIFI || REVK_MESH
help
Set WiFi power save mode
config REVK_WIFIMAXPS
bool "WiFi max power save"
default n
depends on REVK_WIFIPS
help
Set WiFi to maximum power save mode
config REVK_APGPIO
string "AP mode GPIO"
default ""
depends on REVK_WIFI
help
GPIO to force AP mode
config REVK_APSSID
string "Access point SSID"
default ""
depends on REVK_WIFI
help
SSID for access point mode
config REVK_APPASS
string "Access point passphrase"
default ""
depends on REVK_WIFI
help
Passphrase for access point mode
config REVK_APMAX
int "Max AP connections"
default 10
depends on REVK_WIFI
help
Max concurrent AP connections
config REVK_APIP
string "Access point IP"
default "10.0.0.1/24"
depends on REVK_WIFI
help
IP allocation for access point mode
config REVK_APLR
bool "Access point LR mode"
default n
depends on REVK_WIFI
help
Run access point in LR mode
config REVK_APHIDE
bool "Access point hidden SSID"
default n
depends on REVK_WIFI
help
Run AP in hidden SSID mode
config REVK_MQTT
bool "Manage MQTT client"
default y
help
Manage client MQTT
config REVK_MQTT_CLIENTS
int "Number of MQTT clients"
default 1
depends on REVK_MQTT
help
Number of MQTT clients
config REVK_MQTTHOST
string "Default MQTT host"
default "mqtt.iot"
depends on REVK_MQTT
help
This defines the factory reset default MQTT host
config REVK_MQTTUSER
string "Default MQTT username"
default ""
depends on REVK_MQTT
help
This defines the factory reset MQTT username
config REVK_MQTTPASS
string "Default MQTT password"
default ""
depends on REVK_MQTT
help
This defines the factory reset MQTT password
config REVK_MQTTCERT
string "Default MQTT certificate"
default ""
depends on REVK_MQTT
help
This defines the factory reset MQTT certificate
config REVK_MQTTPORT
int "Default MQTT port"
default 0
depends on REVK_MQTT
help
This defines the factory reset MQTT port (0 for standard)
config REVK_MQTTSIZE
int "Default MQTT packet size"
default 2048
depends on REVK_MQTT
help
This defines the factory reset MQTT packet size
config REVK_HALIB
bool "Include Home Assistant library"
default y
depends on REVK_MQTT
help
Include Home Assistant MQTT config library
config REVK_OTAHOST
string "Default OTA host"
default "ota.iot"
help
This defines the factory reset default OTA host (https)
config REVK_OTADAYS
int "Default auto upgrade check (days)"
default 7
help
Number of days between checks for auto upgrade (0 for don't auto upgrade)
config REVK_OTACERT
string "Default OTA certificate"
default ""
help
This defines the factory reset default OTA certificate
config REVK_NTPHOST
string "Default NTP host"
default "pool.ntp.org"
help
This defines the factory reset default NTP host
config REVK_TZ
string "Default TZ (timezone)"
default "GMT+0BST,M3.5.0,M10.5.0"
help
This defines the TZ (timezone) control
config REVK_APMODE
bool "Enable AP when not connected to WiFi, or on button, etc"
default y
depends on REVK_WIFI
help
Enable Access point mode
config REVK_APDNS
bool "Enable dummy DNS in AP mode"
default y
depends on REVK_APMODE
help
Enable dummy DNS returning our IP to allow splash screen
config REVK_APCONFIG
bool "Enable web page to set basic settings when APMODE active"
default y
depends on REVK_APMODE
help
Enable web page for basic settings when in AP MODE
config REVK_APPORT
int "Default AP mode port"
depends on REVK_APCONFIG
default 0
help
The TCP port for web setup page in AP mode
config REVK_APWAIT
int "Default AP mode delay"
depends on REVK_APMODE
default 10
help
Default time for starting AP mode
config REVK_APTIME
int "Default AP active time"
depends on REVK_APMODE
default 600
help
Default time for AP mode
config REVK_PARTITION_CHECK
bool "Check and update partition table"
depends on SPI_FLASH_DANGEROUS_WRITE_ALLOWED
default n
help
Enable automatic checking of partition table, and update if necessary
config REVK_LOCK_CPU1
bool "Lock tasks to CPU1"
default y
help
Lock user tasks to CPU 1
config REVK_SHORT_ID
bool "Make a short ID"
default n
help
Make a short (6 hex chars) ID rather than full MAC
config REVK_BUILD_SUFFIX
string "Build suffix"
default ""
help
Don't set this manually - it is normally set by Makefile (buildsuffix script)
config REVK_PICO
bool "ESP32-PICO"
depends on IDF_TARGET_ESP32
default n
help
If this is built for ESP32-PICO - don't set this manually - it is normally set by Makefile (buildsuffix script)
config REVK_D4
bool "ESP32-D4"
depends on IDF_TARGET_ESP32
default n
help
If this is built for ESP32-D4 - don't set this manually - it is normally set by Makefile (buildsuffix script)
config REVK_MINI
bool "ESP32-MINI"
depends on IDF_TARGET_ESP32S3
default n
help
If this is built for ESP32S3-MINI - don't set this manually - it is normally set by Makefile (buildsuffix script)
config REVK_WEB_TZ
bool "Include timezone in web config"
default y
help
Include timezone in web config
config REVK_WEB_BETA
bool "Include otabeta in web config"
default n
help
Include otabeta in web config
config REVK_WEB_EXTRA
bool "Include extra settings in web config"
default n
help
Include extra settings in web config (call to revk_web_extra(httpd_req_t*,int8_t page))
config REVK_WEB_EXTRA_PAGES
int "Add additional numbered pages"
depends on REVK_WEB_EXTRA
default 0
help
Include extra settings pages in web config (call to revk_web_extra(httpd_req_t*,int8_t page))
config REVK_WEB_DEFAULT
bool "Default web page for settings only"
default n
help
Start web server by default
config REVK_STATE_EXTRA
bool "Include extra data in state message"
default n
help
Include call to revk_state_extra(jo_t) to add extra state data
config REVK_MATTER
bool "Build in Matter"
default n
help
Build in Matter
config REVK_SEASON
bool "Include seasonal tools"
default n
help
Include seasonal tools
config REVK_SOLAR
bool "Include solar tools"
default n
help
Include solar tools
config REVK_LUNAR
bool "Include lunar tools"
default n
help
Include lunar tools
config REVK_SETTINGS_PASSWORD
bool "Simple password control on settings"
depends on !REVK_OLD_SETTINGS
default y
help
Simple password control on settings
config REVK_OLD_SETTINGS
bool "Use old settings library"
default y
help
Use old settings librarey
config REVK_GPIO_INIT
bool "Reset GPIO on startup"
default y
help
Reset most GPIO with pull up/down to current state
config REVK_SETTINGS_DEBUG
bool "Log NVS access for settings"
default n
help
Log NVS access for settings
endmenu