1
0
Fork 0

runtime: clock Si5324 from its crystal

This commit is contained in:
Sebastien Bourdeauducq 2021-07-30 17:07:58 +08:00
parent 8128dc0b56
commit 111ac0c716
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ pub fn main_core0() {
i2c::init(); i2c::init();
#[cfg(feature = "target_kasli_soc")] #[cfg(feature = "target_kasli_soc")]
si5324::setup(unsafe { (&mut i2c::I2C_BUS).as_mut().unwrap() }, si5324::setup(unsafe { (&mut i2c::I2C_BUS).as_mut().unwrap() },
&SI5324_SETTINGS, si5324::Input::Ckin1).expect("cannot initialize Si5324"); &SI5324_SETTINGS, si5324::Input::Ckin2).expect("cannot initialize Si5324");
let cfg = match Config::new() { let cfg = match Config::new() {
Ok(cfg) => cfg, Ok(cfg) => cfg,