mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 14:44:32 +00:00
fix(stm32/h7): use correct unit in vco clock check
This commit is contained in:
parent
ad7d4494fa
commit
e72cc9fb24
@ -721,7 +721,7 @@ fn init_pll(num: usize, config: Option<Pll>, input: &PllInput) -> PllOutput {
|
|||||||
} else if wide_allowed && VCO_WIDE_RANGE.contains(&vco_clk) {
|
} else if wide_allowed && VCO_WIDE_RANGE.contains(&vco_clk) {
|
||||||
Pllvcosel::WIDEVCO
|
Pllvcosel::WIDEVCO
|
||||||
} else {
|
} else {
|
||||||
panic!("pll vco_clk out of range: {} mhz", vco_clk.0)
|
panic!("pll vco_clk out of range: {} hz", vco_clk.0)
|
||||||
};
|
};
|
||||||
|
|
||||||
let p = config.divp.map(|div| {
|
let p = config.divp.map(|div| {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user