-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathKconfig
2176 lines (1727 loc) · 54.2 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
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
if ARCH_CHIP_ESPRESSIF || ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32H2 || ARCH_CHIP_ESP32C3_GENERIC
choice ESPRESSIF_CHIP_SERIES
prompt "Chip Series"
default ESPRESSIF_ESP32C3
config ESPRESSIF_ESP32C3
bool "ESP32-C3"
select ARCH_HAVE_I2CRESET
---help---
ESP32-C3 chip with a single RISC-V IMC core, no embedded Flash memory
config ESPRESSIF_ESP32C6
bool "ESP32-C6"
select ARCH_HAVE_I2CRESET
---help---
Espressif ESP32-C6 (RV32IMAC).
config ESPRESSIF_ESP32H2
bool "ESP32-H2"
select ARCH_HAVE_I2CRESET
---help---
Espressif ESP32-H2 (RV32IMC).
endchoice # ESPRESSIF_CHIP_SERIES
config ESPRESSIF_CHIP_SERIES
string
default "esp32c3" if ESPRESSIF_ESP32C3
default "esp32c6" if ESPRESSIF_ESP32C6
default "esp32h2" if ESPRESSIF_ESP32H2
default "unknown"
choice ESPRESSIF_FLASH
prompt "Flash Size"
default ESPRESSIF_FLASH_4M if ESPRESSIF_ESP32C3 || ESPRESSIF_ESP32C6 || ESPRESSIF_ESP32H2
config ESPRESSIF_FLASH_2M
bool "2 MB"
config ESPRESSIF_FLASH_4M
bool "4 MB"
config ESPRESSIF_FLASH_8M
bool "8 MB"
config ESPRESSIF_FLASH_16M
bool "16 MB"
endchoice # ESPRESSIF_FLASH
config ESPRESSIF_FLASH_DETECT
bool "Auto-detect FLASH size"
default n
---help---
Auto detect flash size when flashing.
config ESPRESSIF_NUM_CPUS
int
default 1 if ESPRESSIF_ESP32C3 || ESPRESSIF_ESP32C6 || ESPRESSIF_ESP32H2
choice ESPRESSIF_CPU_FREQ
prompt "CPU frequency"
default ESPRESSIF_CPU_FREQ_160 if ESPRESSIF_ESP32C3 || ESPRESSIF_ESP32C6
default ESPRESSIF_CPU_FREQ_96 if ESPRESSIF_ESP32H2
---help---
CPU frequency to be set on application startup.
config ESPRESSIF_CPU_FREQ_40
bool "40 MHz"
depends on ESPRESSIF_ESP32C3 || ESPRESSIF_ESP32C6
---help---
Set the CPU frequency to 40 MHz.
config ESPRESSIF_CPU_FREQ_48
bool "48 MHz"
depends on ESPRESSIF_ESP32H2
---help---
Set the CPU frequency to 48 MHz.
config ESPRESSIF_CPU_FREQ_64
bool "64 MHz"
depends on ESPRESSIF_ESP32H2
---help---
Set the CPU frequency to 64 MHz.
config ESPRESSIF_CPU_FREQ_80
bool "80 MHz"
depends on ESPRESSIF_ESP32C3 || ESPRESSIF_ESP32C6
---help---
Set the CPU frequency to 80 MHz.
config ESPRESSIF_CPU_FREQ_96
bool "96 MHz"
depends on ESPRESSIF_ESP32H2
---help---
Set the CPU frequency to 96 MHz.
config ESPRESSIF_CPU_FREQ_160
bool "160 MHz"
depends on ESPRESSIF_ESP32C3 || ESPRESSIF_ESP32C6
---help---
Set the CPU frequency to 160 MHz.
endchoice # ESPRESSIF_CPU_FREQ
config ESPRESSIF_CPU_FREQ_MHZ
int
default 40 if ESPRESSIF_CPU_FREQ_40
default 48 if ESPRESSIF_CPU_FREQ_48
default 64 if ESPRESSIF_CPU_FREQ_64
default 80 if ESPRESSIF_CPU_FREQ_80
default 96 if ESPRESSIF_CPU_FREQ_96
default 160 if ESPRESSIF_CPU_FREQ_160
config ESPRESSIF_REGION_PROTECTION
bool "Enable region protection"
default y
select ARCH_USE_MPU
---help---
Configure the MPU to disable access to invalid memory regions.
config ESPRESSIF_RUN_IRAM
bool "Run from IRAM"
default n
---help---
This loads all of NuttX inside IRAM. Used to test somewhat small
images that can fit entirely in IRAM.
config ESPRESSIF_ESPTOOLPY_NO_STUB
bool "Disable download stub"
default n
---help---
The flasher tool sends a precompiled download stub first by default.
That stub allows things like compressed downloads and more.
Usually you should not need to disable that feature.
It is only required to be disabled in certain scenarios when either
Secure Boot V2 or Flash Encryption is enabled.
config ESPRESSIF_HAL_ASSERTIONS
bool "Enable HAL assertions"
depends on DEBUG_ASSERTIONS
default y
---help---
Enable the assertions implemented in the HAL. Otherwise, the assertions
are replaced by empty macros.
config ESPRESSIF_SOC_RTC_MEM_SUPPORTED
bool
default n
menu "Bootloader and Image Configuration"
config ESPRESSIF_SIMPLE_BOOT
bool
depends on !ESPRESSIF_BOOTLOADER_MCUBOOT
default y
config ESPRESSIF_BOOTLOADER_MCUBOOT
bool "Enable MCUboot-bootable format"
select ESPRESSIF_HAVE_OTA_PARTITION
---help---
Enables the Espressif port of MCUboot to be used as 2nd stage bootloader.
config ESPRESSIF_MCUBOOT_VERSION
string "MCUboot version"
depends on ESPRESSIF_BOOTLOADER_MCUBOOT
default "12906fdeff4d46752fe3c7f211a7a2fbbc8b7318"
choice ESPRESSIF_ESPTOOL_TARGET_SLOT
prompt "Target slot for image flashing"
default ESPRESSIF_ESPTOOL_TARGET_PRIMARY
depends on ESPRESSIF_HAVE_OTA_PARTITION
---help---
Slot to which ESPTOOL will flash the generated binary image.
config ESPRESSIF_ESPTOOL_TARGET_PRIMARY
bool "Application image primary slot"
---help---
This assumes that the generated image is already pre-validated.
This is the recommended option for the initial stages of the
application firmware image development.
config ESPRESSIF_ESPTOOL_TARGET_SECONDARY
bool "Application image secondary slot"
---help---
The application needs to confirm the generated image as valid,
otherwise the bootloader may consider it invalid and perform the
rollback of the update after a reset.
This is the choice most suitable for the development and verification
of a secure firmware update workflow.
endchoice
config ESPRESSIF_MCUBOOT_SIGN_IMAGE_VERSION
string "Sign image version"
depends on ESPRESSIF_BOOTLOADER_MCUBOOT
default "1.0.0"
config ESPRESSIF_APP_MCUBOOT_HEADER_SIZE
int "Application image header size (in bytes)"
default 32
depends on ESPRESSIF_BOOTLOADER_MCUBOOT
config ESPRESSIF_HAVE_OTA_PARTITION
bool
default n
if ESPRESSIF_HAVE_OTA_PARTITION
comment "Application Image OTA Update support"
config ESPRESSIF_OTA_PRIMARY_SLOT_OFFSET
hex "Application image primary slot offset"
default 0x10000
config ESPRESSIF_OTA_PRIMARY_SLOT_DEVPATH
string "Application image primary slot device path"
default "/dev/ota0"
config ESPRESSIF_OTA_SECONDARY_SLOT_OFFSET
hex "Application image secondary slot offset"
default 0x110000
config ESPRESSIF_OTA_SECONDARY_SLOT_DEVPATH
string "Application image secondary slot device path"
default "/dev/ota1"
config ESPRESSIF_OTA_SLOT_SIZE
hex "Application image slot size (in bytes)"
default 0x100000
config ESPRESSIF_OTA_SCRATCH_OFFSET
hex "Scratch partition offset"
default 0x210000
config ESPRESSIF_OTA_SCRATCH_SIZE
hex "Scratch partition size"
default 0x40000
config ESPRESSIF_OTA_SCRATCH_DEVPATH
string "Scratch partition device path"
default "/dev/otascratch"
endif # ESPRESSIF_HAVE_OTA_PARTITION
endmenu # Bootloader and Image Configuration
menu "Peripheral Support"
config ESPRESSIF_RTC
bool "Real Time Clock (RTC)"
default y
config ESPRESSIF_UART
bool
default n
config ESPRESSIF_UART0
bool "UART0"
default y
select ESPRESSIF_UART
select UART0_SERIALDRIVER
select ARCH_HAVE_SERIAL_TERMIOS
config ESPRESSIF_UART1
bool "UART1"
default n
select ESPRESSIF_UART
select UART1_SERIALDRIVER
select ARCH_HAVE_SERIAL_TERMIOS
config ESPRESSIF_TWAI
bool "TWAI (CAN)"
default n
select ARCH_HAVE_CAN_ERRORS
select CAN
config ESPRESSIF_TWAI0
bool "TWAI0 (CAN)"
default n
select ESPRESSIF_TWAI
select ARCH_HAVE_CAN_ERRORS
select CAN
config ESPRESSIF_TWAI1
bool "TWAI1 (CAN)"
default n
depends on ESPRESSIF_ESP32C6
select ESPRESSIF_TWAI
select ARCH_HAVE_CAN_ERRORS
select CAN
config ESPRESSIF_USBSERIAL
bool "USB-Serial-JTAG Driver"
default n
select ESPRESSIF_ESPTOOLPY_NO_STUB if ARCH_CHIP_ESP32C3_GENERIC
select OTHER_UART_SERIALDRIVER
select ARCH_HAVE_SERIAL_TERMIOS
config ESPRESSIF_DEDICATED_GPIO
bool "Dedicated GPIO"
default n
---help---
Enable dedicated GPIO support for faster response time
config ESPRESSIF_GPIO_IRQ
bool "GPIO pin interrupts"
default n
---help---
Enable support for interrupting GPIO pins
config ESPRESSIF_RTCIO_IRQ
bool "RTC IO interrupts"
default n
depends on !ARCH_CHIP_ESP32H2 && !ARCH_CHIP_ESP32C6
---help---
Enable support for RTC peripherals interrupts.
config ESPRESSIF_LEDC
bool "LEDC (PWM)"
default n
select PWM
select ARCH_HAVE_PWM_MULTICHAN
config ESPRESSIF_I2S
bool
default n
config ESPRESSIF_I2S0
bool "I2S 0"
default n
select ESPRESSIF_I2S
select I2S
select ESPRESSIF_DMA
select ESPRESSIF_GPIO_IRQ
select SCHED_HPWORK
config ESPRESSIF_I2C
bool
default n
config ESPRESSIF_I2C_PERIPH_MASTER_MODE
bool
depends on (ESPRESSIF_I2C0_MASTER_MODE || ESPRESSIF_I2C1_MASTER_MODE)
default n
config ESPRESSIF_I2C_PERIPH_SLAVE_MODE
bool
depends on (ESPRESSIF_I2C0_SLAVE_MODE || ESPRESSIF_I2C1_SLAVE_MODE)
default n
config ESPRESSIF_I2C0
bool "I2C 0"
default n
select ESPRESSIF_I2C
select I2C
config ESPRESSIF_I2C1
bool "I2C 1"
default n
depends on ARCH_CHIP_ESP32H2
select ESPRESSIF_I2C
select I2C
choice ESPRESSIF_I2C0_MODE
prompt "I2C0 Mode"
depends on ESPRESSIF_I2C0
default ESPRESSIF_I2C0_MASTER_MODE
config ESPRESSIF_I2C0_MASTER_MODE
bool "I2C0 Master Mode"
select ESPRESSIF_I2C_PERIPH_MASTER_MODE
config ESPRESSIF_I2C0_SLAVE_MODE
bool "I2C0 Slave Mode"
select I2C_SLAVE
select I2C_SLAVE_DRIVER
select ESPRESSIF_I2C_PERIPH_SLAVE_MODE
endchoice # ESPRESSIF_I2C0_MODE
choice ESPRESSIF_I2C1_MODE
prompt "I2C1 Mode"
depends on ESPRESSIF_I2C1
default ESPRESSIF_I2C1_MASTER_MODE
config ESPRESSIF_I2C1_MASTER_MODE
bool "I2C1 Master Mode"
select ESPRESSIF_I2C_PERIPH_MASTER_MODE
config ESPRESSIF_I2C1_SLAVE_MODE
bool "I2C1 Slave Mode"
select I2C_SLAVE
select I2C_SLAVE_DRIVER
select ESPRESSIF_I2C_PERIPH_SLAVE_MODE
endchoice # ESPRESSIF_I2C1_MODE
config ESPRESSIF_I2C_BITBANG
bool "I2C Bitbang"
default n
select I2C_BITBANG
select ESPRESSIF_I2C
select I2C
select I2C_BITBANG
---help---
Software implemented I2C peripheral with GPIOs. Suggested to use if I2C peripherals are already in use.
config ESPRESSIF_SPI
bool
default n
config ESPRESSIF_SPI_PERIPH
bool
depends on ESPRESSIF_SPI2
default n
config ESPRESSIF_SPI2
bool "SPI 2"
default n
select ESPRESSIF_SPI
select SPI
select ESPRESSIF_SPI_PERIPH
config ESPRESSIF_SPI_BITBANG
bool "SPI Bitbang"
default n
select ESPRESSIF_SPI
select SPI
select SPI_BITBANG
---help---
Software implemented SPI peripheral with GPIOs. Suggested to use if SPI peripheral is already in use.
config ESPRESSIF_SPIFLASH
bool "SPI Flash"
default n
config ESPRESSIF_DMA
bool "General DMA (GDMA)"
default n
select ARCH_DMA
config ESPRESSIF_EFUSE
bool "EFUSE support"
default n
---help---
Enable efuse support.
config ESPRESSIF_EFUSE_VIRTUAL
bool "Virtual EFUSE support"
depends on ESPRESSIF_EFUSE
default n
---help---
Enable virtual efuse support to simulate eFuse operations in RAM, changes will be reverted each reboot
config ESPRESSIF_HR_TIMER
bool
default RTC_DRIVER
---help---
A high-resolution hardware timer for supporting the management of
kernel events.
The HR Timer is built on top of the System Timer (SYSTIMER) peripheral.
Timer callbacks are dispatched from a high-priority kernel task.
config ESPRESSIF_WDT
bool
default n
select WATCHDOG
config ESPRESSIF_MWDT0
bool "Main System Watchdog Timer (Group 0)"
default n
select ESPRESSIF_WDT
---help---
Includes MWDT0. This watchdog timer is part of the Group 0
timer submodule.
config ESPRESSIF_MWDT1
bool "Main System Watchdog Timer (Group 1)"
default n
select ESPRESSIF_WDT
---help---
Includes MWDT1. This watchdog timer is part of the Group 1
timer submodule.
config ESPRESSIF_RWDT
bool "RTC Watchdog Timer"
default n
select ESPRESSIF_WDT
---help---
Includes RWDT. This watchdog timer is from the RTC module.
When it is selected, if the developer sets it to reset on expiration
it will reset Main System and the RTC module. If you don't want
to have the RTC module reset, please, use the Timers' Module WDTs.
They will only reset Main System.
config ESPRESSIF_XTWDT
bool "XTAL32K Watchdog Timer"
depends on ARCH_CHIP_ESP32C3_GENERIC
depends on ESPRESSIF_RTCIO_IRQ
depends on ESPRESSIF_RTC_CLK_EXT_OSC || ESPRESSIF_RTC_CLK_EXT_XTAL
default n
select ESPRESSIF_WDT
---help---
Includes XTWDT. This watchdog timer monitors the status of the
external 32 kHz crystal oscillator (XTAL32K). When XTAL32K_CLK works
as the clock source of RTC_SLOW_CLK and it stops oscillating, the
XTAL32K watchdog timer first switches to BACKUP32K_CLK derived from
RC_SLOW_CLK (if ESP32S2_XTWDT_BACKUP_CLK_ENABLE) and, then, generates
an interrupt that could be captured by WDIOC_CAPTURE.
config ESPRESSIF_XTWDT_TIMEOUT
int "XTAL32K watchdog timeout period"
depends on ESPRESSIF_XTWDT
range 1 255
default 200
---help---
Timeout period configuration for the XTAL32K watchdog timer based on RTC_CLK.
config ESPRESSIF_XTWDT_BACKUP_CLK_ENABLE
bool "Automatically switch to BACKUP32K_CLK when timer expires"
depends on ESPRESSIF_XTWDT
default y
---help---
Enable this to automatically switch to BACKUP32K_CLK as the source of
RTC_SLOW_CLK when the watchdog timer expires.
config ESPRESSIF_BROWNOUT_DET
bool "Brownout Detector"
default y
---help---
A built-in brownout detector which can detect if the voltage is lower
than a specific value. If this happens, it will reset the chip in
order to prevent unintended behaviour.
config ESP_RMT
bool "Remote Control Module (RMT)"
default n
depends on RMT
---help---
The RMT (Remote Control Transceiver) peripheral was designed to act as
an infrared transceiver. However, due to the flexibility of its data
format, RMT can be extended to a versatile and general-purpose
transceiver, transmitting or receiving many other types of signals.
config ESPRESSIF_TEMP
bool "Internal Temperature Sensor"
default n
---help---
A built-in sensor used to measure the chip's internal temperature.
config ESP_WIRELESS
bool
default n
select NET
select ARCH_PHY_INTERRUPT
select RTC
select RTC_DRIVER
select ESPRESSIF_HR_TIMER
config ESPRESSIF_WIFI
bool "Wi-Fi"
depends on ESPRESSIF_ESP32C3 || ESPRESSIF_ESP32C6
default n
select ESP_WIRELESS
---help---
Enable Wi-Fi support
config ESPRESSIF_BLE
bool "BLE"
depends on ESPRESSIF_ESP32C3
default n
select ESP_WIRELESS
---help---
Enable BLE support
config ESP_COEX_SW_COEXIST_ENABLE
bool "Software WiFi/Bluetooth/IEEE 802.15.4 coexistence"
depends on (ESPRESSIF_WIFI && ESPRESSIF_BLE) || \
(ESPRESSIF_WIFI && ESP_IEEE802154) || \
(ESP_IEEE802154 && ESPRESSIF_BLE)
default y
---help---
If enabled, WiFi & Bluetooth coexistence is controlled by software rather than hardware.
Recommended for heavy traffic scenarios. Both coexistence configuration options are
automatically managed, no user intervention is required.
If only Bluetooth is used, it is recommended to disable this option to reduce binary file
size.
menuconfig ESPRESSIF_WIFI_BT_COEXIST
bool "Wi-Fi and BT coexist"
default y if ESPRESSIF_WIFI && ESPRESSIF_BLE
default n
depends on ESPRESSIF_WIFI && ESPRESSIF_BLE
select ESPRESSIF_WIFI_STA_DISCONNECT_PM
config ESP_MCPWM
bool "Motor Control PWM (MCPWM)"
default n
depends on ESPRESSIF_ESP32C6 || ESPRESSIF_ESP32H2
---help---
Enable support for timer capture and motor control using
the Motor Control PWM peripheral.
config ESP_PCNT
bool "Pulse Counter (PCNT / QE) Module"
default n
select CAPTURE
depends on ESPRESSIF_ESP32H2 || ESPRESSIF_ESP32C6
menu "Pulse Counter (PCNT) Configuration"
depends on ESP_PCNT
config ESP_PCNT_TEST_MODE
bool "Pulse Counter character driver loopback test mode (for testing only)"
default n
---help---
This enables a loopback test mode that attaches the transmitter
to the receiver internally, being able to test the PCNT
peripheral without any external connection.
config ESP_PCNT_AS_QE
bool
default n
config ESP_PCNT_U0
bool "Enable PCNT Unit 0"
default n
if ESP_PCNT_U0
config ESP_PCNT_U0_QE
bool "Use this PCNT Unit as Quadrature Encoder"
default n
select ESP_PCNT_AS_QE
config ESP_PCNT_U0_CH0_EDGE_PIN
int "PCNT_U0 CH0 Edge/Pulse Pin Number"
default 0
range -1 39
config ESP_PCNT_U0_CH0_LEVEL_PIN
int "PCNT_U0 CH0 Level/Control Pin Number"
default 4 if !ESP_PCNT_U0_QE
default -1 if ESP_PCNT_U0_QE
range -1 39
config ESP_PCNT_U0_CH1_EDGE_PIN
int "PCNT_U0 CH1 Edge/Pulse Pin Number"
default 0 if !ESP_PCNT_U0_QE
default -1 if ESP_PCNT_U0_QE
range -1 39
config ESP_PCNT_U0_CH1_LEVEL_PIN
int "PCNT_U0 CH1 Level/Control Pin Number"
default 4
range -1 39
config ESP_PCNT_U0_FILTER_EN
bool "Enable Glitch Filter for this PCNT Unit"
default n
if ESP_PCNT_U0_FILTER_EN
config ESP_PCNT_U0_FILTER_THRES
int "PCNT_U0 Filter Threshold value"
default 5
---help---
If a pulse is shorter than this number of APB_CLK clock cycles
then it will not be considered as a valid pulse.
endif # ESP_PCNT_U0_FILTER_EN
endif # ESP_PCNT_U0
config ESP_PCNT_U1
bool "Enable PCNT Unit 1"
depends on ESP_PCNT_U0
default n
if ESP_PCNT_U1
config ESP_PCNT_U1_QE
bool "Use this PCNT Unit as Quadrature Encoder"
default n
select ESP_PCNT_AS_QE
config ESP_PCNT_U1_CH0_EDGE_PIN
int "PCNT_U1 CH0 Edge/Pulse Pin Number"
default 0
range -1 39
config ESP_PCNT_U1_CH0_LEVEL_PIN
int "PCNT_U1 CH0 Level/Control Pin Number"
default 4
range -1 39
depends on !ESP_PCNT_U1_QE
config ESP_PCNT_U1_CH1_EDGE_PIN
int "PCNT_U1 CH1 Edge/Pulse Pin Number"
default 0
range -1 39
depends on !ESP_PCNT_U1_QE
config ESP_PCNT_U1_CH1_LEVEL_PIN
int "PCNT_U1 CH1 Level/Control Pin Number"
default 4
range -1 39
config ESP_PCNT_U1_FILTER_EN
bool "Enable Glitch Filter for this PCNT Unit"
default n
if ESP_PCNT_U1_FILTER_EN
config ESP_PCNT_U1_FILTER_THRES
int "PCNT_U1 Filter Threshold value"
default 5
---help---
If a pulse is shorter than this number of APB_CLK clock cycles
then it will not be considered as a valid pulse.
endif # ESP_PCNT_U1_FILTER_EN
endif # ESP_PCNT_U1
config ESP_PCNT_U2
bool "Enable PCNT Unit 2"
depends on ESP_PCNT_U1
default n
if ESP_PCNT_U2
config ESP_PCNT_U2_QE
bool "Use this PCNT Unit as Quadrature Encoder"
default n
select ESP_PCNT_AS_QE
config ESP_PCNT_U2_CH0_EDGE_PIN
int "PCNT_U2 CH0 Edge/Pulse Pin Number"
default 0
range -1 39
config ESP_PCNT_U2_CH0_LEVEL_PIN
int "PCNT_U2 CH0 Level/Control Pin Number"
default 4
range -1 39
depends on !ESP_PCNT_U2_QE
config ESP_PCNT_U2_CH1_EDGE_PIN
int "PCNT_U2 CH1 Edge/Pulse Pin Number"
default 0
range -1 39
depends on !ESP_PCNT_U2_QE
config ESP_PCNT_U2_CH1_LEVEL_PIN
int "PCNT_U2 CH1 Level/Control Pin Number"
default 4
range -1 39
config ESP_PCNT_U2_FILTER_EN
bool "Enable Glitch Filter for this PCNT Unit"
default n
if ESP_PCNT_U2_FILTER_EN
config ESP_PCNT_U2_FILTER_THRES
int "PCNT_U2 Filter Threshold value"
default 5
---help---
If a pulse is shorter than this number of APB_CLK clock cycles
then it will not be considered as a valid pulse.
endif # ESP_PCNT_U2_FILTER_EN
endif # ESP_PCNT_U2
config ESP_PCNT_U3
bool "Enable PCNT Unit 3"
depends on ESP_PCNT_U2
default n
if ESP_PCNT_U3
config ESP_PCNT_U3_QE
bool "Use this PCNT Unit as Quadrature Encoder"
default n
select ESP_PCNT_AS_QE
config ESP_PCNT_U3_CH0_EDGE_PIN
int "PCNT_U3 CH0 Edge/Pulse Pin Number"
default 0
range -1 39
config ESP_PCNT_U3_CH0_LEVEL_PIN
int "PCNT_U3 CH0 Level/Control Pin Number"
default 4
range -1 39
depends on !ESP_PCNT_U3_QE
config ESP_PCNT_U3_CH1_EDGE_PIN
int "PCNT_U3 CH1 Edge/Pulse Pin Number"
default 0
range -1 39
depends on !ESP_PCNT_U3_QE
config ESP_PCNT_U3_CH1_LEVEL_PIN
int "PCNT_U3 CH1 Level/Control Pin Number"
default 4
range -1 39
config ESP_PCNT_U3_FILTER_EN
bool "Enable Glitch Filter for this PCNT Unit"
default n
if ESP_PCNT_U3_FILTER_EN
config ESP_PCNT_U3_FILTER_THRES
int "PCNT_U3 Filter Threshold value"
default 5
---help---
If a pulse is shorter than this number of APB_CLK clock cycles
then it will not be considered as a valid pulse.
endif # ESP_PCNT_U3_FILTER_EN
endif # ESP_PCNT_U3
endmenu # ESP_PCNT
endmenu # Peripheral Support
menu "Wi-Fi Configuration"
depends on ESPRESSIF_WIFI
menu "ESP WPA-Supplicant"
config WPA_WAPI_PSK
bool "Enable WAPI PSK support"
default n
---help---
Select this option to enable WAPI-PSK
which is a Chinese National Standard Encryption for Wireless LANs (GB 15629.11-2003).
config WPA_SUITE_B_192
bool "Enable NSA suite B support with 192-bit key"
default n
select ESPRESSIF_WIFI_GCMP_SUPPORT
select ESPRESSIF_WIFI_GMAC_SUPPORT
---help---
Select this option to enable 192-bit NSA suite-B.
This is necessary to support WPA3 192-bit security.
config ESP_WPA_DEBUG_PRINT
bool "Print debug messages from Espressif's WPA Supplicant"
default n
---help---
Select this option to print logging information from WPA supplicant,
this includes handshake information and key hex dumps depending
on the project logging level.
Enabling this could increase the build size ~60kb
depending on the project logging level.
endmenu # ESP WPA-Supplicant
choice ESPRESSIF_WIFI_MODE
prompt "ESP Wi-Fi mode"
default ESPRESSIF_WIFI_STATION
config ESPRESSIF_WIFI_STATION
bool "Station mode"
config ESPRESSIF_WIFI_SOFTAP
bool "SoftAP mode"
config ESPRESSIF_WIFI_STATION_SOFTAP
bool "Station + SoftAP"
endchoice # ESPRESSIF_WIFI_MODE
config ESPRESSIF_WIFI_ENABLE_WPA3_SAE
bool "Enable WPA3-Personal"
default y
---help---
Select this option to allow the device to establish a WPA3-Personal connection with eligible AP's.
PMF (Protected Management Frames) is a prerequisite feature for a WPA3 connection, it needs to be
explicitly configured before attempting connection. Please refer to the Wi-Fi Driver API Guide for details.
config ESPRESSIF_WIFI_ENABLE_SAE_PK
bool "Enable SAE-PK"
depends on ESPRESSIF_WIFI_ENABLE_WPA3_SAE
default y
---help---
Select this option to enable SAE-PK
config ESPRESSIF_WIFI_SOFTAP_SAE_SUPPORT
bool "Enable WPA3 Personal(SAE) SoftAP"
default y
depends on ESPRESSIF_WIFI_ENABLE_WPA3_SAE
depends on ESPRESSIF_WIFI_SOFTAP || ESPRESSIF_WIFI_STATION_SOFTAP
---help---
Select this option to enable SAE support in softAP mode.
config ESPRESSIF_WIFI_ENABLE_WPA3_OWE_STA
bool "Enable OWE STA"
default y
---help---
Select this option to allow the device to establish OWE connection with eligible AP's.
PMF (Protected Management Frames) is a prerequisite feature for a WPA3 connection, it needs to be
explicitly configured before attempting connection. Please refer to the Wi-Fi Driver API Guide for details.
config ESPRESSIF_WIFI_STATIC_RX_BUFFER_NUM
int "Max number of WiFi static RX buffers"
range 2 25 if !ESPRESSIF_ESP32C6
range 2 128 if ESPRESSIF_ESP32C6
default 10
---help---
Set the number of WiFi static RX buffers. Each buffer takes approximately 1.6KB of RAM.
The static rx buffers are allocated when esp_wifi_init is called, they are not freed
until esp_wifi_deinit is called.
WiFi hardware use these buffers to receive all 802.11 frames.
A higher number may allow higher throughput but increases memory use. If ESPRESSIF_WIFI_AMPDU_RX_ENABLED
is enabled, this value is recommended to set equal or bigger than ESPRESSIF_WIFI_RX_BA_WIN in order to
achieve better throughput and compatibility with both stations and APs.
config ESPRESSIF_WIFI_DYNAMIC_RX_BUFFER_NUM
int "Max number of WiFi dynamic RX buffers"
default 32
---help---
Set the number of WiFi dynamic RX buffers, 0 means unlimited RX buffers will be allocated
(provided sufficient free RAM). The size of each dynamic RX buffer depends on the size of
the received data frame.
For each received data frame, the WiFi driver makes a copy to an RX buffer and then delivers
it to the high layer TCP/IP stack. The dynamic RX buffer is freed after the higher layer has
successfully received the data frame.
For some applications, WiFi data frames may be received faster than the application can
process them. In these cases we may run out of memory if RX buffer number is unlimited (0).
If a dynamic RX buffer limit is set, it should be at least the number of static RX buffers.
config ESPRESSIF_WIFI_DYNAMIC_TX_BUFFER_NUM
int "Max number of WiFi dynamic TX buffers"
range 1 128
default 32
---help---
Set the number of WiFi dynamic TX buffers. The size of each dynamic TX buffer is not fixed,
it depends on the size of each transmitted data frame.
For each transmitted frame from the higher layer TCP/IP stack, the WiFi driver makes a copy
of it in a TX buffer. For some applications, especially UDP applications, the upper layer
can deliver frames faster than WiFi layer can transmit. In these cases, we may run out of TX
buffers.
config ESPRESSIF_WIFI_AMPDU_TX_ENABLED
bool "Wi-Fi TX AMPDU"
default y
---help---
Select this option to enable AMPDU TX feature
config ESPRESSIF_WIFI_TX_BA_WIN
int "WiFi AMPDU TX BA window size"
depends on ESPRESSIF_WIFI_AMPDU_TX_ENABLED
range 2 32 if !ESPRESSIF_ESP32C6
range 2 64 if ESPRESSIF_ESP32C6
default 6
config ESPRESSIF_WIFI_AMPDU_RX_ENABLED
bool "WiFi AMPDU RX"
default y
---help---
Select this option to enable AMPDU RX feature
config ESPRESSIF_WIFI_RX_BA_WIN
int "WiFi AMPDU RX BA window size"
depends on ESPRESSIF_WIFI_AMPDU_RX_ENABLED
range 2 32 if !ESPRESSIF_ESP32C6
range 2 64 if ESPRESSIF_ESP32C6
default 6
---help---
Set the size of WiFi Block Ack RX window. Generally a bigger value means higher throughput and better
compatibility but more memory. Most of time we should NOT change the default value unless special
reason, e.g. test the maximum UDP RX throughput with iperf etc. For iperf test in shieldbox, the
recommended value is 9~12. If PSRAM is used and WiFi memory is prefered to allocat in PSRAM first,
the default and minimum value should be 16 to achieve better throughput and compatibility with both
stations and APs.
config ESPRESSIF_WIFI_GCMP_SUPPORT
bool "WiFi GCMP Support(GCMP128 and GCMP256)"
default n
---help---