brownout: Disable the hardware BOD when BOD interrupt is enabled

This commit is contained in:
Cao Sen Miao
2023-04-13 18:54:14 +08:00
parent 67f6b668bd
commit e2925cde68
5 changed files with 15 additions and 1 deletions

View File

@@ -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;
}