mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
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() {}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
unsafe fn configure_pll(p: pac::pll::Pll, input_freq: u32, config: PllConfig) {
|
||||
let ref_freq = input_freq / config.refdiv;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user