From 0ac03dfd2b47d6e92e4359ea58a76dfe69d06dcd Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 9 Jun 2026 00:00:50 +0800 Subject: [PATCH] wire in the bio loader implementation --- apps-dabao/dabao-console/Cargo.toml | 6 +++++- apps-dabao/dabao-console/src/cmds.rs | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps-dabao/dabao-console/Cargo.toml b/apps-dabao/dabao-console/Cargo.toml index 68264d561..5b19b2506 100644 --- a/apps-dabao/dabao-console/Cargo.toml +++ b/apps-dabao/dabao-console/Cargo.toml @@ -29,7 +29,11 @@ xous-usb-hid = { git = "https://github.com/betrusted-io/xous-usb-hid.git", branc bio-lib = { path = "../../libs/bio-lib" } arbitrary-int = "1.2" -# aes testing +# loadable BIO +keystore = { path = "../../services/keystore", features = ["board-dabao"] } +base64 = { version = "0.22.1", default-features = false, features = ["alloc"] } +crc32fast = "1.5.0" + [features] bao1x = ["utralib/bao1x", "usb-bao1x/bao1x", "aes/bao1x"] board-dabao = [ diff --git a/apps-dabao/dabao-console/src/cmds.rs b/apps-dabao/dabao-console/src/cmds.rs index df42007b8..ff3a3953f 100644 --- a/apps-dabao/dabao-console/src/cmds.rs +++ b/apps-dabao/dabao-console/src/cmds.rs @@ -94,6 +94,8 @@ mod ws2812; use ws2812::*; mod touch; use touch::*; +mod bio; +use bio::*; pub struct CmdEnv { common_env: CommonEnv, @@ -106,6 +108,7 @@ pub struct CmdEnv { aes_cmd: Aes, ws2812_cmd: Ws2812, touch_cmd: Touch, + bio: BioLoader, } impl CmdEnv { pub fn new(xns: &xous_names::XousNames) -> CmdEnv { @@ -134,6 +137,7 @@ impl CmdEnv { aes_cmd, ws2812_cmd: Ws2812::new(), touch_cmd: Touch::new(), + bio: BioLoader::new(), } } @@ -162,6 +166,7 @@ impl CmdEnv { &mut self.aes_cmd, &mut self.ws2812_cmd, &mut self.touch_cmd, + &mut self.bio, ]; if let Some(cmdline) = maybe_cmdline {