rtio_clocking: additional warnings, fixes

pull/152/head
mwojcik 1 year ago
parent 7ecee2b3ee
commit 8bc0266bbe
  1. 8
      src/runtime/src/rtio_clocking.rs

@ -55,9 +55,13 @@ fn init_rtio(timer: &mut GlobalTimer, _clk: RtioClock) {
info!("Using bypassed external clock");
1
},
x => {
RtioClock::Int_125 => {
info!("Using internal RTIO clock");
0
},
_ => {
warn!("rtio_clock setting '{:?}' is not supported. Using default internal RTIO clock instead", _clk);
0
}
};
@ -113,7 +117,7 @@ fn setup_si5324(i2c: &mut I2c, timer: &mut GlobalTimer, clk: RtioClock) {
}
}
_ => { // same setting as Int_125, but fallback to default
warn!("rtio_clock setting '{:x}' is unsupported. Falling back to default internal 125MHz RTIO clock.");
warn!("rtio_clock setting '{:?}' is unsupported. Falling back to default internal 125MHz RTIO clock.", clk);
si5324::FrequencySettings {
n1_hs : 10,
nc1_ls : 4,

Loading…
Cancel
Save