pub fn listen(&mut self, event: Event) {
        match event {
            Event::EarlyWakeup => {
                // If this value is 0 it is assumed that the watchdog has not yet been started.
                // It needs to have started because the starting procedure already makes the early wakeup pending,
                // which would immediately call the interrupt.
                assert!(self.down_counter != 0);
                // Set the ewi bit
                self.wwdg.cfr.modify(|_, w| w.ewi().enable());
            }
        }
    }
/// Start listening for `event`
Start listening for `event`
Start listening for ` event `
pub fn listen(&mut self, event: Event) {
        match event {
            Event::EarlyWakeup => {
                // If this value is 0 it is assumed that the watchdog has not yet been started.
                // It needs to have started because the starting procedure already makes the early wakeup pending,
                // which would immediately call the interrupt.
                assert!(self.down_counter != 0);
                // Set the ewi bit
                self.wwdg.cfr.modify(|_, w| w.ewi().enable());
            }
        }
    }
pub fn listen ( & mut self , event : Event ) { match event { Event :: EarlyWakeup => { // If this value is 0 it is assumed that the watchdog has not yet been started. // It needs to have started because the starting procedure already makes the early wakeup pending, // which would immediately call the interrupt. assert ! ( self down_counter 0 ) ; // Set the ewi bit self . wwdg . cfr . modify ( | _ , w | w . ewi ( ) . enable ( ) ) ; } } }
Start listening for `event`
Start listening for ` event `
&mut self
event
Event
&mut self
event
Event