Merge pull request #1629 from davidpurser/stm32h7-pll-fix
Correctly calculate target VCO frequency from multipliers
This commit is contained in:
commit
758a2c528f
@ -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!(pll_x_p < 128);
|
||||||
assert!(vco_ck >= VCO_MIN);
|
assert!(vco_ck >= VCO_MIN);
|
||||||
|
Loading…
Reference in New Issue
Block a user