2022-12-06 00:46:03 -05:00
|
|
|
menu "Brownout Detector"
|
|
|
|
config ESP_BROWNOUT_DET
|
|
|
|
bool "Hardware brownout detect & reset"
|
|
|
|
depends on !IDF_ENV_FPGA
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
The ESP32-H2 has 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.
|
|
|
|
|
|
|
|
choice ESP_BROWNOUT_DET_LVL_SEL
|
|
|
|
prompt "Brownout voltage level"
|
|
|
|
depends on ESP_BROWNOUT_DET
|
2023-12-07 22:11:00 -05:00
|
|
|
default ESP_BROWNOUT_DET_LVL_SEL_0
|
2022-12-06 00:46:03 -05:00
|
|
|
help
|
|
|
|
The brownout detector will reset the chip when the supply voltage is approximately
|
|
|
|
below this level. Note that there may be some variation of brownout voltage level
|
|
|
|
between each chip.
|
|
|
|
|
|
|
|
#The voltage levels here are estimates, more work needs to be done to figure out the exact voltages
|
|
|
|
#of the brownout threshold levels.
|
|
|
|
config ESP_BROWNOUT_DET_LVL_SEL_7
|
2023-12-07 22:11:00 -05:00
|
|
|
bool "2.94V"
|
2022-12-06 00:46:03 -05:00
|
|
|
config ESP_BROWNOUT_DET_LVL_SEL_6
|
2023-12-07 22:11:00 -05:00
|
|
|
bool "2.88V"
|
2022-12-06 00:46:03 -05:00
|
|
|
config ESP_BROWNOUT_DET_LVL_SEL_5
|
2023-12-07 22:11:00 -05:00
|
|
|
bool "2.83V"
|
2022-12-06 00:46:03 -05:00
|
|
|
config ESP_BROWNOUT_DET_LVL_SEL_4
|
2023-12-07 22:11:00 -05:00
|
|
|
bool "2.78V"
|
2022-12-06 00:46:03 -05:00
|
|
|
config ESP_BROWNOUT_DET_LVL_SEL_3
|
2023-12-07 22:11:00 -05:00
|
|
|
bool "2.73V"
|
2022-12-06 00:46:03 -05:00
|
|
|
config ESP_BROWNOUT_DET_LVL_SEL_2
|
2023-12-07 22:11:00 -05:00
|
|
|
bool "2.67V"
|
|
|
|
config ESP_BROWNOUT_DET_LVL_SEL_1
|
|
|
|
bool "2.62V"
|
|
|
|
config ESP_BROWNOUT_DET_LVL_SEL_0
|
|
|
|
bool "2.57V"
|
2022-12-06 00:46:03 -05:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ESP_BROWNOUT_DET_LVL
|
|
|
|
int
|
2023-12-07 22:11:00 -05:00
|
|
|
default 0 if ESP_BROWNOUT_DET_LVL_SEL_0
|
|
|
|
default 1 if ESP_BROWNOUT_DET_LVL_SEL_1
|
2022-12-06 00:46:03 -05:00
|
|
|
default 2 if ESP_BROWNOUT_DET_LVL_SEL_2
|
|
|
|
default 3 if ESP_BROWNOUT_DET_LVL_SEL_3
|
|
|
|
default 4 if ESP_BROWNOUT_DET_LVL_SEL_4
|
|
|
|
default 5 if ESP_BROWNOUT_DET_LVL_SEL_5
|
|
|
|
default 6 if ESP_BROWNOUT_DET_LVL_SEL_6
|
|
|
|
default 7 if ESP_BROWNOUT_DET_LVL_SEL_7
|
|
|
|
|
|
|
|
endmenu
|