stm32: make time provider public again
This commit is contained in:
parent
87c03037e3
commit
487a6324ef
1 changed files with 3 additions and 2 deletions
|
@ -102,7 +102,8 @@ pub enum RtcError {
|
||||||
NotRunning,
|
NotRunning,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) struct RtcTimeProvider {
|
/// Provides immutable access to the current time of the RTC.
|
||||||
|
pub struct RtcTimeProvider {
|
||||||
_private: (),
|
_private: (),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -243,7 +244,7 @@ impl Rtc {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Acquire a [`RtcTimeProvider`] instance.
|
/// Acquire a [`RtcTimeProvider`] instance.
|
||||||
pub(crate) const fn time_provider(&self) -> RtcTimeProvider {
|
pub const fn time_provider(&self) -> RtcTimeProvider {
|
||||||
RtcTimeProvider { _private: () }
|
RtcTimeProvider { _private: () }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue