aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/rtc
diff options
context:
space:
mode:
authorChuck Davis <[email protected]>2023-09-24 19:09:04 -0500
committerGitHub <[email protected]>2023-09-24 19:09:04 -0500
commitf7c2db245f8085334a366f63a7f0b4987c5e4dee (patch)
tree73b68a1c56a768d8425146bcade0b5f1a2bc6d38 /embassy-stm32/src/rtc
parent7d5e62d4a7764c80a9378e34e755239838081a00 (diff)
parent2543bcafafbe56f925c39c37b72f634674ccba65 (diff)
Merge branch 'embassy-rs:main' into rust-lorawan-lora-phy-v2
Diffstat (limited to 'embassy-stm32/src/rtc')
-rw-r--r--embassy-stm32/src/rtc/v2.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/embassy-stm32/src/rtc/v2.rs b/embassy-stm32/src/rtc/v2.rs
index 05b85ef46..ab562d2b6 100644
--- a/embassy-stm32/src/rtc/v2.rs
+++ b/embassy-stm32/src/rtc/v2.rs
@@ -295,20 +295,6 @@ impl sealed::Instance for crate::peripherals::RTC {
295 // read to allow the pwr clock to enable 295 // read to allow the pwr clock to enable
296 crate::pac::PWR.cr1().read(); 296 crate::pac::PWR.cr1().read();
297 } 297 }
298 #[cfg(any(rtc_v2f2))]
299 {
300 // enable peripheral clock for communication
301 crate::pac::RCC.apb1enr().modify(|w| w.set_pwren(true));
302
303 // read to allow the pwr clock to enable
304 crate::pac::PWR.cr().read();
305 }
306
307 #[cfg(any(rtc_v2f0, rtc_v2l0))]
308 {
309 // enable peripheral clock for communication
310 crate::pac::RCC.apb1enr().modify(|w| w.set_pwren(true));
311 }
312 } 298 }
313 299
314 fn read_backup_register(rtc: &Rtc, register: usize) -> Option<u32> { 300 fn read_backup_register(rtc: &Rtc, register: usize) -> Option<u32> {