aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/rtc/v2.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-09-24 23:54:32 +0200
committerDario Nieuwenhuis <[email protected]>2023-09-25 01:07:55 +0200
commite03239e88d7f2d01f31de5e5eef2b4d79522679d (patch)
tree077c0a9cb985a857f1eec1a4b2f5b348d5a25319 /embassy-stm32/src/rtc/v2.rs
parent65d36f9f99c3b8055e7b9c02e1b1aae3cb242d6a (diff)
stm32: centralize enabling pwr, syscfg, flash.
Diffstat (limited to 'embassy-stm32/src/rtc/v2.rs')
-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> {