feat(pwr_glitch): Add power glitch support on esp32c5/esp32c61

This commit is contained in:
chaijie@espressif.com
2024-08-23 14:31:49 +08:00
committed by zhoupeng
parent 1662e28718
commit e1423c53d5
11 changed files with 120 additions and 51 deletions

View File

@@ -113,8 +113,6 @@ static inline void brownout_ll_ana_reset_enable(bool enable)
LP_ANA_PERI.fib_enable.val &= ~BROWNOUT_DETECTOR_LL_FIB_ENABLE;
// then we can enable or disable if we want the BOD mode1 to reset the system
LP_ANA_PERI.bod_mode1_cntl.bod_mode1_reset_ena = enable;
// Disable the power glitch detect.
LP_ANA_PERI.fib_enable.val &= ~(BIT2|BIT3|BIT4|BIT5);
}
/**