pub fn open_or_init(
        rtc: RTC,
        prec: backup::Rtc,
        clock_source: RtcClock,
        clocks: &CoreClocks,
    ) -> Self {
        match Rtc::try_open(rtc, prec, clock_source, clocks) {
            Ok(rtc) => rtc,
            Err((rtc, prec, _err)) => {
                Rtc::init(rtc, prec, clock_source, clocks)
            }
        }
    }
/// Opens the RTC if it is running and its configuration matches, otherwise resets and inits the RTC
Opens the RTC if it is running and its configuration matches, otherwise resets and inits the RTC
Opens the RTC if it is running and its configuration matches otherwise resets and inits the RTC
pub fn open_or_init(
        rtc: RTC,
        prec: backup::Rtc,
        clock_source: RtcClock,
        clocks: &CoreClocks,
    ) -> Self {
        match Rtc::try_open(rtc, prec, clock_source, clocks) {
            Ok(rtc) => rtc,
            Err((rtc, prec, _err)) => {
                Rtc::init(rtc, prec, clock_source, clocks)
            }
        }
    }
pub fn open_or_init ( rtc : RTC , prec : backup :: Rtc , clock_source : RtcClock , clocks : & CoreClocks , ) -> Self { match Rtc :: try_open ( rtc , prec , clock_source , clocks ) { Ok ( rtc ) => rtc , Err ( ( rtc , prec , _err ) ) => { Rtc :: init ( rtc , prec , clock_source , clocks ) } } }
Opens the RTC if it is running and its configuration matches, otherwise resets and inits the RTC
Opens the RTC if it is running and its configuration matches otherwise resets and inits the RTC
rtc
RTC
prec
backup::Rtc
clock_source
RtcClock
clocks
&CoreClocks
rtc
RTC
prec
backup::Rtc
clock_source
RtcClock
clocks
&CoreClocks