tweaks for dev environment

This commit is contained in:
bunnie 2025-08-07 01:03:15 +08:00
parent 580af8578a
commit cbedc3a091
2 changed files with 47 additions and 14 deletions

View file

@ -22,10 +22,12 @@ artybio = [
"linked_list_allocator",
"xous-bio-bdma/artybio",
"xous-bio-bdma/baremetal",
"nto-bio"
"nto-bio",
]
artyvexii = ["utralib/artyvexii", "linked_list_allocator"]
v0p9 = []
# Baochip feature tree below
v0p9 = [] # selects RAM timings for VDD core = 0.9V
cramium-soc = [
"utralib/cramium-soc",
"linked_list_allocator",
@ -33,14 +35,15 @@ cramium-soc = [
"cramium-api",
"v0p9",
]
# activates BIO test suite
nto-bio = [
"utralib/cramium-soc",
"linked_list_allocator",
"cramium-hal/loader-baosec",
"cramium-api",
"v0p9",
"xous-bio-bdma/bio-mul",
"xous-bio-bdma/baremetal",
"xous-bio-bdma/cramium-soc",
"xous-bio-bdma/tests",
]
# selects features for EVB target (defaults to baosec)
nto-evb = []
verilator-only = []
default = ["artyvexii"]

View file

@ -3,7 +3,7 @@ use alloc::vec::Vec;
#[allow(unused_imports)]
use utralib::*;
#[cfg(feature = "artybio")]
#[cfg(any(feature = "artybio", feature = "nto-bio"))]
use xous_bio_bdma::*;
pub struct Repl {
@ -225,6 +225,40 @@ impl Repl {
#[cfg(feature = "nto-bio")]
"bio" => {
const BIO_TESTS: usize =
// get_id
1
// dma
+ 4 * 5 + 1
// clocking modes
// + 4 + 4 + 4 + 4 + 2
// stack test
+ 1
// hello word, hello multiverse, aclk_tests
+ 3
// fifo_basic
+ 1
// host_fifo_tests
+ 1
// spi_test
+ 1
// i2c_test
+ 1
// complex_i2c_test
+ 1
// fifo_level_tests
+ 1
// fifo_alias_tests
+ 1
// event_aliases
+ 1
// dmareq_test
+ 1
// bio-mul
+ 1
// filter test
+ 1;
crate::println!("--- Starting On-Demand BIO Test Suite ---");
// Local counter to replace `self.passing_tests` from the TestRunner
let mut passing_tests = 0;
@ -286,11 +320,7 @@ impl Repl {
passing_tests += bio_tests::units::fifo_level_tests();
// Final report
crate::println!(
"\n--- BIO Tests Complete: {}/{} passed. ---\n",
passing_tests,
BIO_TESTS_FINAL
);
crate::println!("\n--- BIO Tests Complete: {}/{} passed. ---\n", passing_tests, BIO_TESTS);
}
"echo" => {
for word in args {