rp/clocks: always inline configure_pll
this is always advantageous, except *maybe* in O0. nothing really works as expected in O0, so we may as well always inline for constant propagation.
This commit is contained in:
parent
56f2e0c9a0
commit
e1e87fef25
@ -576,6 +576,7 @@ unsafe fn start_xosc(crystal_hz: u32) {
|
|||||||
while !pac::XOSC.status().read().stable() {}
|
while !pac::XOSC.status().read().stable() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline(always)]
|
||||||
unsafe fn configure_pll(p: pac::pll::Pll, input_freq: u32, config: PllConfig) {
|
unsafe fn configure_pll(p: pac::pll::Pll, input_freq: u32, config: PllConfig) {
|
||||||
let ref_freq = input_freq / config.refdiv;
|
let ref_freq = input_freq / config.refdiv;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user