stm32: fix rcc wb

This commit is contained in:
xoviat 2023-08-29 19:51:21 -05:00
parent 21681d8b4e
commit 27dfced285
2 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,7 @@ pub struct Clocks {
/// Set only if the lsi or lse is configured, indicates stop is supported /// Set only if the lsi or lse is configured, indicates stop is supported
pub rtc: Option<Hertz>, pub rtc: Option<Hertz>,
#[cfg(any(rcc_f4, rcc_f410))] #[cfg(any(rcc_wb, rcc_f4, rcc_f410))]
/// Set if the hse is configured, indicates stop is not supported /// Set if the hse is configured, indicates stop is not supported
pub rtc_hse: Option<Hertz>, pub rtc_hse: Option<Hertz>,
} }

View File

@ -271,6 +271,7 @@ pub(crate) fn compute_clocks(config: &Config) -> Clocks {
apb1_tim: apb1_tim_clk, apb1_tim: apb1_tim_clk,
apb2_tim: apb2_tim_clk, apb2_tim: apb2_tim_clk,
rtc: rtc_clk, rtc: rtc_clk,
rtc_hse: None,
} }
} }