aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/rtc/mod.rs
diff options
context:
space:
mode:
authorChristian Enderle <[email protected]>2023-09-21 17:17:58 +0200
committerChristian Enderle <[email protected]>2023-09-21 17:17:58 +0200
commitad64d7b20b26e0854c4d1302f562df51e67a022b (patch)
tree78e649b6d6764620e7af955e2727917c6a0c3a8e /embassy-stm32/src/rtc/mod.rs
parent5626a28af269ac2c70a9db6f9a39c3526f9d15b0 (diff)
fix low-power: APB1 needed for LSE
Diffstat (limited to 'embassy-stm32/src/rtc/mod.rs')
-rw-r--r--embassy-stm32/src/rtc/mod.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/embassy-stm32/src/rtc/mod.rs b/embassy-stm32/src/rtc/mod.rs
index 07b4fe1f0..7eafedec4 100644
--- a/embassy-stm32/src/rtc/mod.rs
+++ b/embassy-stm32/src/rtc/mod.rs
@@ -154,8 +154,6 @@ impl Default for RtcCalibrationCyclePeriod {
154 154
155impl Rtc { 155impl Rtc {
156 pub fn new(_rtc: impl Peripheral<P = RTC>, rtc_config: RtcConfig) -> Self { 156 pub fn new(_rtc: impl Peripheral<P = RTC>, rtc_config: RtcConfig) -> Self {
157 RTC::enable_peripheral_clk();
158
159 let mut this = Self { 157 let mut this = Self {
160 #[cfg(feature = "low-power")] 158 #[cfg(feature = "low-power")]
161 stop_time: Mutex::const_new(CriticalSectionRawMutex::new(), Cell::new(None)), 159 stop_time: Mutex::const_new(CriticalSectionRawMutex::new(), Cell::new(None)),