aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/rtc
diff options
context:
space:
mode:
authorpbert <[email protected]>2023-10-11 18:06:43 +0200
committerpbert <[email protected]>2023-10-12 11:04:19 +0200
commitf65a96c54146179f76a7a2a784c5bb89590e5de1 (patch)
tree21b20805229d639f16f035a64f94cb896a636cd0 /embassy-stm32/src/rtc
parenteb368f77a46682f76dcc4d75f9ba4ce80dfb4193 (diff)
STM32: combine RccPeripherals reset() and enable() to reset_and_enable()
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 cf34d2191..2eb0cde14 100644
--- a/embassy-stm32/src/rtc/mod.rs
+++ b/embassy-stm32/src/rtc/mod.rs
@@ -184,7 +184,7 @@ impl Default for RtcCalibrationCyclePeriod {
184impl Rtc { 184impl Rtc {
185 pub fn new(_rtc: impl Peripheral<P = RTC>, rtc_config: RtcConfig) -> Self { 185 pub fn new(_rtc: impl Peripheral<P = RTC>, rtc_config: RtcConfig) -> Self {
186 #[cfg(not(any(stm32l0, stm32f3, stm32l1, stm32f0, stm32f2)))] 186 #[cfg(not(any(stm32l0, stm32f3, stm32l1, stm32f0, stm32f2)))]
187 <RTC as crate::rcc::sealed::RccPeripheral>::enable(); 187 <RTC as crate::rcc::sealed::RccPeripheral>::reset_and_enable();
188 188
189 let mut this = Self { 189 let mut this = Self {
190 #[cfg(feature = "low-power")] 190 #[cfg(feature = "low-power")]