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)
RTCCNTL.int_ena.rtc_brown_out = enable;
}
/**
* @brief Enable brownout hardware reset
*
* @param enable
*/
static inline void brownout_ll_ana_reset_enable(bool enable)
{
RTCCNTL.brown_out.ana_rst_en = enable;
}
/**
* @brief Clear interrupt bits.
*/