mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
debug and implementation for composable I/O
This commit is contained in:
parent
556e920981
commit
bf78ba150f
2 changed files with 9 additions and 1 deletions
|
|
@ -536,7 +536,9 @@ fn main() {
|
|||
_ => scalar.arg2 = 0,
|
||||
}
|
||||
} else {
|
||||
iox.set_ports_from_bio_bitmask(scalar.arg1 as u32);
|
||||
let io_mode: bio::IoConfigMode = scalar.arg4.into();
|
||||
iox.set_ports_from_bio_bitmask(scalar.arg1 as u32, io_mode);
|
||||
log::debug!("bio_bitmask: {:x}", iox.get_bio_mapping_bitmask());
|
||||
// no return values need to be set
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ fn bio_service(clk_freq: u32) {
|
|||
)
|
||||
};
|
||||
let mut config = buf.to_original::<CoreInitRkyv, _>().unwrap();
|
||||
log::trace!("initing with {:x?}", config.config);
|
||||
match bio_ss.init_core(config.core, &config.code, config.offset, config.config) {
|
||||
Ok(freq) => {
|
||||
config.actual_freq = freq;
|
||||
|
|
@ -53,6 +54,7 @@ fn bio_service(clk_freq: u32) {
|
|||
}
|
||||
}
|
||||
buf.replace(config).unwrap();
|
||||
log::debug!("extclk: {:x}", bio_ss.bio.r(utralib::utra::bio_bdma::SFR_EXTCLOCK));
|
||||
}
|
||||
|
||||
BioOp::DeInitCore => {
|
||||
|
|
@ -125,6 +127,10 @@ fn bio_service(clk_freq: u32) {
|
|||
log::debug!("setting: {:?}", which);
|
||||
bio_ss.set_core_state(which).unwrap();
|
||||
log::debug!("core state: {:x}", bio_ss.bio.r(utralib::utra::bio_bdma::SFR_CTRL));
|
||||
log::trace!("qdiv0 {:x}", bio_ss.bio.r(utralib::utra::bio_bdma::SFR_QDIV0));
|
||||
log::trace!("qdiv1 {:x}", bio_ss.bio.r(utralib::utra::bio_bdma::SFR_QDIV1));
|
||||
log::trace!("qdiv2 {:x}", bio_ss.bio.r(utralib::utra::bio_bdma::SFR_QDIV2));
|
||||
log::trace!("qdiv3 {:x}", bio_ss.bio.r(utralib::utra::bio_bdma::SFR_QDIV3));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue