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:
pennae 2023-05-13 18:45:14 +02:00
parent 56f2e0c9a0
commit e1e87fef25

View File

@ -576,6 +576,7 @@ unsafe fn start_xosc(crystal_hz: u32) {
while !pac::XOSC.status().read().stable() {}
}
#[inline(always)]
unsafe fn configure_pll(p: pac::pll::Pll, input_freq: u32, config: PllConfig) {
let ref_freq = input_freq / config.refdiv;