aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfe1es <[email protected]>2024-02-19 15:25:24 +0900
committerfe1es <[email protected]>2024-02-19 15:25:24 +0900
commit5b7e2d88265b5633fa53047961598fbc38bffed0 (patch)
tree00311f89534447ee23ffdf3347fafdd6a640497b
parent69bfcaad42e560b3d52c0e03a761dcedf34cc09f (diff)
stm32/rcc: reset RTC on stm32l0
-rw-r--r--embassy-stm32/src/rcc/bd.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/rcc/bd.rs b/embassy-stm32/src/rcc/bd.rs
index d20f58185..d381ec1bd 100644
--- a/embassy-stm32/src/rcc/bd.rs
+++ b/embassy-stm32/src/rcc/bd.rs
@@ -206,7 +206,7 @@ impl LsConfig {
206 bdcr().modify(|w| w.set_vswrst(true)); 206 bdcr().modify(|w| w.set_vswrst(true));
207 bdcr().modify(|w| w.set_vswrst(false)); 207 bdcr().modify(|w| w.set_vswrst(false));
208 } 208 }
209 #[cfg(any(stm32c0))] 209 #[cfg(any(stm32c0, stm32l0))]
210 { 210 {
211 bdcr().modify(|w| w.set_rtcrst(true)); 211 bdcr().modify(|w| w.set_rtcrst(true));
212 bdcr().modify(|w| w.set_rtcrst(false)); 212 bdcr().modify(|w| w.set_rtcrst(false));