mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-11 21:10:05 +01:00
brownout: Disable the hardware BOD when BOD interrupt is enabled
This commit is contained in:
@@ -23,6 +23,8 @@ void brownout_hal_config(const brownout_hal_config_t *cfg)
|
||||
.ena = cfg->enabled,
|
||||
.rst_sel = 1,
|
||||
};
|
||||
// If brownout software control is enabled, hw ana reset should be disabled, because it always has the highest priority.
|
||||
RTCCNTL.brown_out.ana_rst_en = false;
|
||||
RTCCNTL.brown_out = brown_out_reg;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user