aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-08-29 19:51:21 -0500
committerxoviat <[email protected]>2023-08-29 19:51:21 -0500
commit27dfced285f7f997d6a7679373052efb7ae84e01 (patch)
tree53018964745f948ced3ad6cb26636f644fcb5fe3
parent21681d8b4ee392ce3b4f68be76b6096abe104ad3 (diff)
stm32: fix rcc wb
-rw-r--r--embassy-stm32/src/rcc/mod.rs2
-rw-r--r--embassy-stm32/src/rcc/wb.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/embassy-stm32/src/rcc/mod.rs b/embassy-stm32/src/rcc/mod.rs
index 1ead60b18..0430e4a74 100644
--- a/embassy-stm32/src/rcc/mod.rs
+++ b/embassy-stm32/src/rcc/mod.rs
@@ -81,7 +81,7 @@ pub struct Clocks {
81 /// Set only if the lsi or lse is configured, indicates stop is supported 81 /// Set only if the lsi or lse is configured, indicates stop is supported
82 pub rtc: Option<Hertz>, 82 pub rtc: Option<Hertz>,
83 83
84 #[cfg(any(rcc_f4, rcc_f410))] 84 #[cfg(any(rcc_wb, rcc_f4, rcc_f410))]
85 /// Set if the hse is configured, indicates stop is not supported 85 /// Set if the hse is configured, indicates stop is not supported
86 pub rtc_hse: Option<Hertz>, 86 pub rtc_hse: Option<Hertz>,
87} 87}
diff --git a/embassy-stm32/src/rcc/wb.rs b/embassy-stm32/src/rcc/wb.rs
index 6a3eab707..6496b41e1 100644
--- a/embassy-stm32/src/rcc/wb.rs
+++ b/embassy-stm32/src/rcc/wb.rs
@@ -271,6 +271,7 @@ pub(crate) fn compute_clocks(config: &Config) -> Clocks {
271 apb1_tim: apb1_tim_clk, 271 apb1_tim: apb1_tim_clk,
272 apb2_tim: apb2_tim_clk, 272 apb2_tim: apb2_tim_clk,
273 rtc: rtc_clk, 273 rtc: rtc_clk,
274 rtc_hse: None,
274 } 275 }
275} 276}
276 277