From d0f94424dbd85a810eef7907ed1c1f2a54000e75 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 25 Jun 2024 03:32:12 +0800 Subject: [PATCH] reformatting and shuffling of test order and printouts just determining a good target length for instruction memory size for the next iteration of the bio core --- libs/xous-bio/src/bio_tests/mod.rs | 6 +++--- libs/xous-bio/src/bio_tests/spi.rs | 2 +- libs/xous-bio/src/i2c.rs | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/xous-bio/src/bio_tests/mod.rs b/libs/xous-bio/src/bio_tests/mod.rs index 4ea103725..c3868c511 100644 --- a/libs/xous-bio/src/bio_tests/mod.rs +++ b/libs/xous-bio/src/bio_tests/mod.rs @@ -90,12 +90,12 @@ pub fn report_api(d: u32) { pub fn bio_tests() { report_api(crate::get_id()); + units::hello_world(); + units::hello_multiverse(); + spi::spi_test(); units::aclk_tests(); i2c::i2c_test(); i2c::complex_i2c_test(); - spi::spi_test(); - units::hello_world(); - units::hello_multiverse(); units::fifo_basic(); units::host_fifo_tests(); units::fifo_level_tests(); diff --git a/libs/xous-bio/src/bio_tests/spi.rs b/libs/xous-bio/src/bio_tests/spi.rs index 5e8a12670..3db3fdc56 100644 --- a/libs/xous-bio/src/bio_tests/spi.rs +++ b/libs/xous-bio/src/bio_tests/spi.rs @@ -14,7 +14,7 @@ pub fn spi_test() { // stop all the machines, so that code can be loaded bio_ss.bio.wo(utra::bio::SFR_CTRL, 0x0); let code = spi_driver(); - print!("code length {}\r", code.len()); + print!("SPI code length {}\r", code.len()); bio_ss.load_code(code, 0); // configure fifo trigger levels diff --git a/libs/xous-bio/src/i2c.rs b/libs/xous-bio/src/i2c.rs index f707f873e..37e56528f 100644 --- a/libs/xous-bio/src/i2c.rs +++ b/libs/xous-bio/src/i2c.rs @@ -36,6 +36,7 @@ impl<'a> BioI2C<'a> { // stop all the machines, so that code can be loaded bio_ss.bio.wo(utra::bio::SFR_CTRL, 0x0); let code = i2c_driver(); + print!("I2C code length: {} bytes\r", code.len()); bio_ss.load_code(code, 0); if hs {