mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
add artybio target, remove debug prints that don't map to the target
This commit is contained in:
parent
b3a04e349a
commit
51c5fc75be
3 changed files with 4 additions and 5 deletions
|
|
@ -8,9 +8,7 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.14"
|
log = "0.4.14"
|
||||||
defmt = { version = "0.3", optional = true }
|
defmt = { version = "0.3", optional = true }
|
||||||
utralib = { version = "0.1.25", default-features = false, features = [
|
utralib = { version = "0.1.25", default-features = false }
|
||||||
"cramium-soc",
|
|
||||||
] }
|
|
||||||
|
|
||||||
[target.'cfg(target_os = "xous")'.dependencies]
|
[target.'cfg(target_os = "xous")'.dependencies]
|
||||||
xous = "0.9.66"
|
xous = "0.9.66"
|
||||||
|
|
@ -18,6 +16,7 @@ xous = "0.9.66"
|
||||||
[features]
|
[features]
|
||||||
cramium-soc = ["utralib/cramium-soc"]
|
cramium-soc = ["utralib/cramium-soc"]
|
||||||
cramium-fpga = ["utralib/cramium-fpga"]
|
cramium-fpga = ["utralib/cramium-fpga"]
|
||||||
|
artybio = ["utralib/artybio"]
|
||||||
precursor = []
|
precursor = []
|
||||||
hosted = []
|
hosted = []
|
||||||
renode = []
|
renode = []
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ impl<'a> BioI2C<'a> {
|
||||||
// stop all the machines, so that code can be loaded
|
// stop all the machines, so that code can be loaded
|
||||||
bio_ss.bio.wo(utra::bio_bdma::SFR_CTRL, 0x0);
|
bio_ss.bio.wo(utra::bio_bdma::SFR_CTRL, 0x0);
|
||||||
let code = i2c_driver();
|
let code = i2c_driver();
|
||||||
print!("I2C code length: {} bytes\r", code.len());
|
// print!("I2C code length: {} bytes\r", code.len());
|
||||||
bio_ss.load_code(code, 0, BioCore::Core0);
|
bio_ss.load_code(code, 0, BioCore::Core0);
|
||||||
|
|
||||||
if hs {
|
if hs {
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ impl BioSharedState {
|
||||||
let word: u32 = u32::from_le_bytes(chunk.try_into().unwrap());
|
let word: u32 = u32::from_le_bytes(chunk.try_into().unwrap());
|
||||||
let rbk = self.imem_slice[core as usize][i + offset];
|
let rbk = self.imem_slice[core as usize][i + offset];
|
||||||
if rbk != word {
|
if rbk != word {
|
||||||
print!("{:?} expected {:x} got {:x} at {}\r", core, word, rbk, i + offset);
|
// print!("{:?} expected {:x} got {:x} at {}\r", core, word, rbk, i + offset);
|
||||||
return Err(BioError::CodeCheck(i + offset));
|
return Err(BioError::CodeCheck(i + offset));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue