mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
Merge pull request #2352 from MabezDev/public-rtc-time-provider
stm32: make time provider public again
This commit is contained in:
commit
e7d071ec9e
@ -102,7 +102,8 @@ pub enum RtcError {
|
||||
NotRunning,
|
||||
}
|
||||
|
||||
pub(crate) struct RtcTimeProvider {
|
||||
/// Provides immutable access to the current time of the RTC.
|
||||
pub struct RtcTimeProvider {
|
||||
_private: (),
|
||||
}
|
||||
|
||||
@ -243,7 +244,7 @@ impl Rtc {
|
||||
}
|
||||
|
||||
/// Acquire a [`RtcTimeProvider`] instance.
|
||||
pub(crate) const fn time_provider(&self) -> RtcTimeProvider {
|
||||
pub const fn time_provider(&self) -> RtcTimeProvider {
|
||||
RtcTimeProvider { _private: () }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user