ld_pwr_exc_protector: clear irq bit at pwr up
This commit is contained in:
parent
7b52072617
commit
a90031dd6c
|
@ -212,6 +212,7 @@ impl LdPwrExcProtector {
|
||||||
pub fn pwr_on_and_arm_protection() {
|
pub fn pwr_on_and_arm_protection() {
|
||||||
if let Some(ref mut wdg) = LdPwrExcProtector::get() {
|
if let Some(ref mut wdg) = LdPwrExcProtector::get() {
|
||||||
wdg.alarm_status = Status::default();
|
wdg.alarm_status = Status::default();
|
||||||
|
LdPwrExcProtector::clear_interrupt_bit();
|
||||||
LdPwrExcProtector::pwr_on();
|
LdPwrExcProtector::pwr_on();
|
||||||
// Interrupt should be enabled after power on to tackle the following edge case:
|
// Interrupt should be enabled after power on to tackle the following edge case:
|
||||||
// Pd_Mon pin voltage has already exceed threshold before LD Power is on.
|
// Pd_Mon pin voltage has already exceed threshold before LD Power is on.
|
||||||
|
|
Loading…
Reference in New Issue