From 69b4e898b3ac9e21deef56cb1dde34aa860e3f00 Mon Sep 17 00:00:00 2001 From: David Purser <60577982+davidpurser@users.noreply.github.com> Date: Fri, 7 Jul 2023 20:52:44 -0500 Subject: [PATCH] Correctly calculate target VCO frequency from multipliers --- embassy-stm32/src/rcc/h7.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/rcc/h7.rs b/embassy-stm32/src/rcc/h7.rs index f3a98c79..7e5cd0d1 100644 --- a/embassy-stm32/src/rcc/h7.rs +++ b/embassy-stm32/src/rcc/h7.rs @@ -740,7 +740,7 @@ mod pll { } }; - let vco_ck = output + pll_x_p; + let vco_ck = output * pll_x_p; assert!(pll_x_p < 128); assert!(vco_ck >= VCO_MIN);