From e1e87fef25e4a8f3ac21bcb4a9cb9bf41ddfd0d2 Mon Sep 17 00:00:00 2001 From: pennae Date: Sat, 13 May 2023 18:45:14 +0200 Subject: [PATCH] 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. --- embassy-rp/src/clocks.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/embassy-rp/src/clocks.rs b/embassy-rp/src/clocks.rs index 1354ccd27..0972cb215 100644 --- a/embassy-rp/src/clocks.rs +++ b/embassy-rp/src/clocks.rs @@ -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;