From fffbb9371facc52e24afa26744a2baf88c2dfc36 Mon Sep 17 00:00:00 2001 From: sam chin Date: Wed, 6 Aug 2025 18:55:36 +0800 Subject: [PATCH] wip --- baremetal/Cargo.toml | 1 + baremetal/src/repl.rs | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/baremetal/Cargo.toml b/baremetal/Cargo.toml index 93a38d051..b0336b27a 100644 --- a/baremetal/Cargo.toml +++ b/baremetal/Cargo.toml @@ -22,6 +22,7 @@ artybio = [ "linked_list_allocator", "xous-bio-bdma/artybio", "xous-bio-bdma/baremetal", + "nto-bio" ] artyvexii = ["utralib/artyvexii", "linked_list_allocator"] v0p9 = [] diff --git a/baremetal/src/repl.rs b/baremetal/src/repl.rs index 09d304a77..b4f14d4f5 100644 --- a/baremetal/src/repl.rs +++ b/baremetal/src/repl.rs @@ -224,7 +224,7 @@ impl Repl { } #[cfg(feature = "nto-bio")] - "bio_test" => { + "bio" => { crate::println!("--- Starting On-Demand BIO Test Suite ---"); // Local counter to replace `self.passing_tests` from the TestRunner let mut passing_tests = 0; @@ -261,7 +261,7 @@ impl Repl { passing_tests += bio_tests::units::hello_world(); passing_tests += bio_tests::arith::stack_test(); - #[cfg(feature = "bio-mul")] + { // safety: this is safe only if the target supports multiplication passing_tests += unsafe { bio_tests::arith::mac_test() }; // 1 @@ -305,6 +305,8 @@ impl Repl { crate::print!(", rram"); #[cfg(not(feature = "cramium-soc"))] crate::print!(", mon"); + #[cfg(not(feature = "nto-bio"))] + crate::print!(", bio"); crate::println!(""); } }