diff options
| author | Christian Enderle <[email protected]> | 2023-09-21 17:17:58 +0200 |
|---|---|---|
| committer | Christian Enderle <[email protected]> | 2023-09-21 17:17:58 +0200 |
| commit | ad64d7b20b26e0854c4d1302f562df51e67a022b (patch) | |
| tree | 78e649b6d6764620e7af955e2727917c6a0c3a8e /embassy-stm32/src/rtc/mod.rs | |
| parent | 5626a28af269ac2c70a9db6f9a39c3526f9d15b0 (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.rs | 2 |
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 | ||
| 155 | impl Rtc { | 155 | impl 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)), |
