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 a125e8f7ed
commit f44e8a8a8f
9 changed files with 79 additions and 1 deletions

View File

@@ -96,6 +96,16 @@ static inline void brownout_ll_intr_enable(bool enable)
LP_ANA_PERI.int_ena.bod_mode0 = enable;
}
/**
* @brief Enable brownout hardware reset
*
* @param enable
*/
static inline void brownout_ll_ana_reset_enable(bool enable)
{
LP_ANA_PERI.bod_mode1_cntl.bod_mode1_reset_ena = enable;
}
/**
* @brief Clear interrupt bits.
*/