aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/rtc
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-stm32/src/rtc')
-rw-r--r--embassy-stm32/src/rtc/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/rtc/mod.rs b/embassy-stm32/src/rtc/mod.rs
index b12a0db66..f3cd16b4f 100644
--- a/embassy-stm32/src/rtc/mod.rs
+++ b/embassy-stm32/src/rtc/mod.rs
@@ -205,7 +205,7 @@ impl Rtc {
205 /// Create a new RTC instance. 205 /// Create a new RTC instance.
206 pub fn new(_rtc: impl Peripheral<P = RTC>, rtc_config: RtcConfig) -> Self { 206 pub fn new(_rtc: impl Peripheral<P = RTC>, rtc_config: RtcConfig) -> Self {
207 #[cfg(not(any(stm32l0, stm32f3, stm32l1, stm32f0, stm32f2)))] 207 #[cfg(not(any(stm32l0, stm32f3, stm32l1, stm32f0, stm32f2)))]
208 <RTC as crate::rcc::SealedRccPeripheral>::enable_and_reset(); 208 crate::rcc::enable_and_reset::<RTC>();
209 209
210 let mut this = Self { 210 let mut this = Self {
211 #[cfg(feature = "low-power")] 211 #[cfg(feature = "low-power")]