brownout: Disable the hardware BOD when BOD interrupt is enabled

This commit is contained in:
Cao Sen Miao
2023-04-21 10:22:59 +08:00
parent 2a28061eaa
commit a3d962d89a
9 changed files with 79 additions and 1 deletions
@@ -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.
*/