From 51c5fc75be45536a5fc04ad58949c16492202426 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 15 Jun 2025 01:03:01 +0800 Subject: [PATCH] add artybio target, remove debug prints that don't map to the target --- libs/xous-bio-bdma/Cargo.toml | 5 ++--- libs/xous-bio-bdma/src/i2c.rs | 2 +- libs/xous-bio-bdma/src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/xous-bio-bdma/Cargo.toml b/libs/xous-bio-bdma/Cargo.toml index 55f5d808f..c3a9c04f6 100644 --- a/libs/xous-bio-bdma/Cargo.toml +++ b/libs/xous-bio-bdma/Cargo.toml @@ -8,9 +8,7 @@ edition = "2021" [dependencies] log = "0.4.14" defmt = { version = "0.3", optional = true } -utralib = { version = "0.1.25", default-features = false, features = [ - "cramium-soc", -] } +utralib = { version = "0.1.25", default-features = false } [target.'cfg(target_os = "xous")'.dependencies] xous = "0.9.66" @@ -18,6 +16,7 @@ xous = "0.9.66" [features] cramium-soc = ["utralib/cramium-soc"] cramium-fpga = ["utralib/cramium-fpga"] +artybio = ["utralib/artybio"] precursor = [] hosted = [] renode = [] diff --git a/libs/xous-bio-bdma/src/i2c.rs b/libs/xous-bio-bdma/src/i2c.rs index 43bf4ef14..c5b9402a5 100644 --- a/libs/xous-bio-bdma/src/i2c.rs +++ b/libs/xous-bio-bdma/src/i2c.rs @@ -36,7 +36,7 @@ impl<'a> BioI2C<'a> { // stop all the machines, so that code can be loaded bio_ss.bio.wo(utra::bio_bdma::SFR_CTRL, 0x0); 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); if hs { diff --git a/libs/xous-bio-bdma/src/lib.rs b/libs/xous-bio-bdma/src/lib.rs index e7891c058..680990453 100644 --- a/libs/xous-bio-bdma/src/lib.rs +++ b/libs/xous-bio-bdma/src/lib.rs @@ -189,7 +189,7 @@ impl BioSharedState { let word: u32 = u32::from_le_bytes(chunk.try_into().unwrap()); let rbk = self.imem_slice[core as usize][i + offset]; 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)); } } else {