aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-09-15 14:50:19 +0000
committerGitHub <[email protected]>2023-09-15 14:50:19 +0000
commitc091ed2f63da1c2135a84b7bfeb2003514c02526 (patch)
treeefed6307bc9efaca6b278e3a616deb38bcef55a8
parent7c77d2bd94afcc5dc174f9b3e5c2ce947c6fabb0 (diff)
parent45e9e51bdc5c3657c44a0951932e5f5a87d5f175 (diff)
Merge pull request #1908 from chrenderle/low-power-l0
Fix low-power feature for STM32L0
-rw-r--r--embassy-stm32/src/rtc/v2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/rtc/v2.rs b/embassy-stm32/src/rtc/v2.rs
index 1fa9f2fe3..726886f10 100644
--- a/embassy-stm32/src/rtc/v2.rs
+++ b/embassy-stm32/src/rtc/v2.rs
@@ -298,7 +298,7 @@ impl sealed::Instance for crate::peripherals::RTC {
298 crate::pac::PWR.cr().read(); 298 crate::pac::PWR.cr().read();
299 } 299 }
300 300
301 #[cfg(any(rtc_v2f0))] 301 #[cfg(any(rtc_v2f0, rtc_v2l0))]
302 { 302 {
303 // enable peripheral clock for communication 303 // enable peripheral clock for communication
304 crate::pac::RCC.apb1enr().modify(|w| w.set_pwren(true)); 304 crate::pac::RCC.apb1enr().modify(|w| w.set_pwren(true));