diff options
Diffstat (limited to 'embassy-stm32/src/rtc/mod.rs')
| -rw-r--r-- | embassy-stm32/src/rtc/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/rtc/mod.rs b/embassy-stm32/src/rtc/mod.rs index c2919e2bd..b16c6fdca 100644 --- a/embassy-stm32/src/rtc/mod.rs +++ b/embassy-stm32/src/rtc/mod.rs | |||
| @@ -29,9 +29,9 @@ use crate::time::Hertz; | |||
| 29 | mod _version; | 29 | mod _version; |
| 30 | #[allow(unused_imports)] | 30 | #[allow(unused_imports)] |
| 31 | pub use _version::*; | 31 | pub use _version::*; |
| 32 | use embassy_hal_internal::Peripheral; | ||
| 33 | 32 | ||
| 34 | use crate::peripherals::RTC; | 33 | use crate::peripherals::RTC; |
| 34 | use crate::Peri; | ||
| 35 | 35 | ||
| 36 | /// Errors that can occur on methods on [RtcClock] | 36 | /// Errors that can occur on methods on [RtcClock] |
| 37 | #[non_exhaustive] | 37 | #[non_exhaustive] |
| @@ -151,7 +151,7 @@ pub enum RtcCalibrationCyclePeriod { | |||
| 151 | 151 | ||
| 152 | impl Rtc { | 152 | impl Rtc { |
| 153 | /// Create a new RTC instance. | 153 | /// Create a new RTC instance. |
| 154 | pub fn new(_rtc: impl Peripheral<P = RTC>, rtc_config: RtcConfig) -> Self { | 154 | pub fn new(_rtc: Peri<'static, RTC>, rtc_config: RtcConfig) -> Self { |
| 155 | #[cfg(not(any(stm32l0, stm32f3, stm32l1, stm32f0, stm32f2)))] | 155 | #[cfg(not(any(stm32l0, stm32f3, stm32l1, stm32f0, stm32f2)))] |
| 156 | crate::rcc::enable_and_reset::<RTC>(); | 156 | crate::rcc::enable_and_reset::<RTC>(); |
| 157 | 157 | ||
