fix(bod): Fix BOD threshold value on ESP32H2

This commit is contained in:
Cao Sen Miao 2023-12-08 11:11:00 +08:00
parent 7011329b35
commit bba56bc016

View File

@ -11,7 +11,7 @@ menu "Brownout Detector"
choice ESP_BROWNOUT_DET_LVL_SEL choice ESP_BROWNOUT_DET_LVL_SEL
prompt "Brownout voltage level" prompt "Brownout voltage level"
depends on ESP_BROWNOUT_DET depends on ESP_BROWNOUT_DET
default ESP_BROWNOUT_DET_LVL_SEL_7 default ESP_BROWNOUT_DET_LVL_SEL_0
help help
The brownout detector will reset the chip when the supply voltage is approximately 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 below this level. Note that there may be some variation of brownout voltage level
@ -20,21 +20,27 @@ menu "Brownout Detector"
#The voltage levels here are estimates, more work needs to be done to figure out the exact voltages #The voltage levels here are estimates, more work needs to be done to figure out the exact voltages
#of the brownout threshold levels. #of the brownout threshold levels.
config ESP_BROWNOUT_DET_LVL_SEL_7 config ESP_BROWNOUT_DET_LVL_SEL_7
bool "2.51V" bool "2.94V"
config ESP_BROWNOUT_DET_LVL_SEL_6 config ESP_BROWNOUT_DET_LVL_SEL_6
bool "2.64V" bool "2.88V"
config ESP_BROWNOUT_DET_LVL_SEL_5 config ESP_BROWNOUT_DET_LVL_SEL_5
bool "2.76V" bool "2.83V"
config ESP_BROWNOUT_DET_LVL_SEL_4 config ESP_BROWNOUT_DET_LVL_SEL_4
bool "2.92V" bool "2.78V"
config ESP_BROWNOUT_DET_LVL_SEL_3 config ESP_BROWNOUT_DET_LVL_SEL_3
bool "3.10V" bool "2.73V"
config ESP_BROWNOUT_DET_LVL_SEL_2 config ESP_BROWNOUT_DET_LVL_SEL_2
bool "3.27V" bool "2.67V"
config ESP_BROWNOUT_DET_LVL_SEL_1
bool "2.62V"
config ESP_BROWNOUT_DET_LVL_SEL_0
bool "2.57V"
endchoice endchoice
config ESP_BROWNOUT_DET_LVL config ESP_BROWNOUT_DET_LVL
int int
default 0 if ESP_BROWNOUT_DET_LVL_SEL_0
default 1 if ESP_BROWNOUT_DET_LVL_SEL_1
default 2 if ESP_BROWNOUT_DET_LVL_SEL_2 default 2 if ESP_BROWNOUT_DET_LVL_SEL_2
default 3 if ESP_BROWNOUT_DET_LVL_SEL_3 default 3 if ESP_BROWNOUT_DET_LVL_SEL_3
default 4 if ESP_BROWNOUT_DET_LVL_SEL_4 default 4 if ESP_BROWNOUT_DET_LVL_SEL_4