diff --git a/embassy-stm32/src/rcc/h7.rs b/embassy-stm32/src/rcc/h7.rs index 55ddf073..e5e604d0 100644 --- a/embassy-stm32/src/rcc/h7.rs +++ b/embassy-stm32/src/rcc/h7.rs @@ -77,7 +77,6 @@ pub struct Config { pub bypass_hse: bool, pub sys_ck: Option, pub per_ck: Option, - rcc_hclk: Option, pub hclk: Option, pub pclk1: Option, pub pclk2: Option, @@ -526,7 +525,7 @@ pub(crate) unsafe fn init(mut config: Config) { }; assert!(sys_d1cpre_ck <= sys_d1cpre_ck_max); - let rcc_hclk = config.rcc_hclk.map(|v| v.0).unwrap_or(sys_d1cpre_ck / 2); + let rcc_hclk = config.hclk.map(|v| v.0).unwrap_or(sys_d1cpre_ck / 2); assert!(rcc_hclk <= rcc_hclk_max); // Estimate divisor