From ecd4ca333c55bc8259d914cd468d95ca054f9607 Mon Sep 17 00:00:00 2001 From: mwojcik Date: Fri, 6 Oct 2023 15:21:51 +0800 Subject: [PATCH] rtio_clocking: inform the user if PLL is bypassed --- src/runtime/src/rtio_clocking.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/runtime/src/rtio_clocking.rs b/src/runtime/src/rtio_clocking.rs index 9279cb54..000acaa1 100644 --- a/src/runtime/src/rtio_clocking.rs +++ b/src/runtime/src/rtio_clocking.rs @@ -264,7 +264,10 @@ pub fn init(timer: &mut GlobalTimer, cfg: &Config) { { let i2c = unsafe { (&mut i2c::I2C_BUS).as_mut().unwrap() }; match clk { - RtioClock::Ext0_Bypass => si5324::bypass(i2c, SI5324_EXT_INPUT, timer).expect("cannot bypass Si5324"), + RtioClock::Ext0_Bypass => { + info!("bypassing the PLL for RTIO clock"); + si5324::bypass(i2c, SI5324_EXT_INPUT, timer).expect("cannot bypass Si5324") + } _ => setup_si5324(i2c, timer, clk), } }