diff options
| author | pennae <[email protected]> | 2023-05-13 18:45:14 +0200 |
|---|---|---|
| committer | pennae <[email protected]> | 2023-05-17 14:45:35 +0200 |
| commit | e1e87fef25e4a8f3ac21bcb4a9cb9bf41ddfd0d2 (patch) | |
| tree | 08122ebcf6f1721534958db017b0d84ab4e2d7a5 /embassy-rp/src/clocks.rs | |
| parent | 56f2e0c9a02f6db9fe4e3a72a9b7fdd160a90aa8 (diff) | |
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.
Diffstat (limited to 'embassy-rp/src/clocks.rs')
| -rw-r--r-- | embassy-rp/src/clocks.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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) { | |||
| 576 | while !pac::XOSC.status().read().stable() {} | 576 | while !pac::XOSC.status().read().stable() {} |
| 577 | } | 577 | } |
| 578 | 578 | ||
| 579 | #[inline(always)] | ||
| 579 | unsafe fn configure_pll(p: pac::pll::Pll, input_freq: u32, config: PllConfig) { | 580 | unsafe fn configure_pll(p: pac::pll::Pll, input_freq: u32, config: PllConfig) { |
| 580 | let ref_freq = input_freq / config.refdiv; | 581 | let ref_freq = input_freq / config.refdiv; |
| 581 | 582 | ||
