diff options
| author | Scott Mabin <[email protected]> | 2023-12-23 00:14:10 +0000 |
|---|---|---|
| committer | Scott Mabin <[email protected]> | 2023-12-23 00:14:10 +0000 |
| commit | 487a6324ef3897a283bff5356bd511c7f570ed12 (patch) | |
| tree | 33b7dbabed1cfc269b69aabd30f8b8aa3b56fa59 /embassy-stm32/src/rtc | |
| parent | 87c03037e320ce30c0cd34fe97e0365e1b11aa9a (diff) | |
stm32: make time provider public again
Diffstat (limited to 'embassy-stm32/src/rtc')
| -rw-r--r-- | embassy-stm32/src/rtc/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-stm32/src/rtc/mod.rs b/embassy-stm32/src/rtc/mod.rs index 40cd752a2..65e8713f0 100644 --- a/embassy-stm32/src/rtc/mod.rs +++ b/embassy-stm32/src/rtc/mod.rs | |||
| @@ -102,7 +102,8 @@ pub enum RtcError { | |||
| 102 | NotRunning, | 102 | NotRunning, |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | pub(crate) struct RtcTimeProvider { | 105 | /// Provides immutable access to the current time of the RTC. |
| 106 | pub struct RtcTimeProvider { | ||
| 106 | _private: (), | 107 | _private: (), |
| 107 | } | 108 | } |
| 108 | 109 | ||
| @@ -243,7 +244,7 @@ impl Rtc { | |||
| 243 | } | 244 | } |
| 244 | 245 | ||
| 245 | /// Acquire a [`RtcTimeProvider`] instance. | 246 | /// Acquire a [`RtcTimeProvider`] instance. |
| 246 | pub(crate) const fn time_provider(&self) -> RtcTimeProvider { | 247 | pub const fn time_provider(&self) -> RtcTimeProvider { |
| 247 | RtcTimeProvider { _private: () } | 248 | RtcTimeProvider { _private: () } |
| 248 | } | 249 | } |
| 249 | 250 | ||
