pub fn clear_date_time(&mut self) {
        // Enter initialization mode
        self.reg.isr.modify(|_, w| w.init().set_bit());
        while self.reg.isr.read().initf().bit_is_clear() {}

        self.reg.tr.reset();
        self.reg.dr.reset();

        // Exit initialization mode
        self.reg.isr.modify(|_, w| w.init().clear_bit());
    }
/// De-initializes the calendar and clock
///
/// For when you lose confidince in the stored time e.g. if the LSE clock fails.
De-initializes the calendar and clock
For when you lose confidince in the stored time e.g. if the LSE clock fails.
De - initializes the calendar and clock For when you lose confidince in the stored time e . g . if the LSE clock fails .
pub fn clear_date_time(&mut self) {
        // Enter initialization mode
        self.reg.isr.modify(|_, w| w.init().set_bit());
        while self.reg.isr.read().initf().bit_is_clear() {}
        self.reg.tr.reset();
        self.reg.dr.reset();
        // Exit initialization mode
        self.reg.isr.modify(|_, w| w.init().clear_bit());
    }
pub fn clear_date_time ( & mut self ) { // Enter initialization mode self . reg . isr . modify ( | _ , w | w . init ( ) . set_bit ( ) ) ; while self . reg . isr . read ( ) . initf ( ) . bit_is_clear ( ) { } self . reg . tr . reset ( ) ; self . reg . dr . reset ( ) ; // Exit initialization mode self . reg . isr . modify ( | _ , w | w . init ( ) . clear_bit ( ) ) ; }
De-initializes the calendar and clock
For when you lose confidince in the stored time e.g.
De - initializes the calendar and clock For when you lose confidince in the stored time e . g .
&mut self
&mut self