1menu "Brownout Detector"
2
3    config ESP_BROWNOUT_DET
4        bool "Hardware brownout detect & reset"
5        depends on !IDF_ENV_FPGA
6        default y
7        help
8            The ESP has a built-in brownout detector which can detect if the voltage is lower than
9            a specific value. If this happens, it will reset the chip in order to prevent unintended
10            behaviour.
11
12    choice ESP_BROWNOUT_DET_LVL_SEL
13        prompt "Brownout voltage level"
14        depends on ESP_BROWNOUT_DET
15        default ESP_BROWNOUT_DET_LVL_SEL_0
16        help
17            The brownout detector will reset the chip when the supply voltage is approximately
18            below this level. Note that there may be some variation of brownout voltage level
19            between each ESP chip.
20
21            #The voltage levels here are estimates, more work needs to be done to figure out the exact voltages
22            #of the brownout threshold levels.
23        config ESP_BROWNOUT_DET_LVL_SEL_0
24            bool "2.43V +/- 0.05"
25        config ESP_BROWNOUT_DET_LVL_SEL_1
26            bool "2.48V +/- 0.05"
27        config ESP_BROWNOUT_DET_LVL_SEL_2
28            bool "2.58V +/- 0.05"
29        config ESP_BROWNOUT_DET_LVL_SEL_3
30            bool "2.62V +/- 0.05"
31        config ESP_BROWNOUT_DET_LVL_SEL_4
32            bool "2.67V +/- 0.05"
33        config ESP_BROWNOUT_DET_LVL_SEL_5
34            bool "2.70V +/- 0.05"
35        config ESP_BROWNOUT_DET_LVL_SEL_6
36            bool "2.77V +/- 0.05"
37        config ESP_BROWNOUT_DET_LVL_SEL_7
38            bool "2.80V +/- 0.05"
39    endchoice
40
41    config ESP_BROWNOUT_DET_LVL
42        int
43        default 0 if ESP_BROWNOUT_DET_LVL_SEL_0
44        default 1 if ESP_BROWNOUT_DET_LVL_SEL_1
45        default 2 if ESP_BROWNOUT_DET_LVL_SEL_2
46        default 3 if ESP_BROWNOUT_DET_LVL_SEL_3
47        default 4 if ESP_BROWNOUT_DET_LVL_SEL_4
48        default 5 if ESP_BROWNOUT_DET_LVL_SEL_5
49        default 6 if ESP_BROWNOUT_DET_LVL_SEL_6
50        default 7 if ESP_BROWNOUT_DET_LVL_SEL_7
51
52endmenu
53
54config ESP32_DISABLE_BASIC_ROM_CONSOLE
55    bool "Permanently disable BASIC ROM Console"
56    default n
57    help
58        If set, the first time the app boots it will disable the BASIC ROM Console
59        permanently (by burning an eFuse).
60
61        Otherwise, the BASIC ROM Console starts on reset if no valid bootloader is
62        read from the flash.
63
64        (Enabling secure boot also disables the BASIC ROM Console by default.)
65
66config ESP32_ECO3_CACHE_LOCK_FIX
67    bool
68    default y
69    depends on !FREERTOS_UNICORE && SPIRAM
70