wire in the bio loader implementation

This commit is contained in:
bunnie 2026-06-09 00:00:50 +08:00
parent d010f07dd7
commit 0ac03dfd2b
2 changed files with 10 additions and 1 deletions

View file

@ -29,7 +29,11 @@ xous-usb-hid = { git = "https://github.com/betrusted-io/xous-usb-hid.git", branc
bio-lib = { path = "../../libs/bio-lib" } bio-lib = { path = "../../libs/bio-lib" }
arbitrary-int = "1.2" 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] [features]
bao1x = ["utralib/bao1x", "usb-bao1x/bao1x", "aes/bao1x"] bao1x = ["utralib/bao1x", "usb-bao1x/bao1x", "aes/bao1x"]
board-dabao = [ board-dabao = [

View file

@ -94,6 +94,8 @@ mod ws2812;
use ws2812::*; use ws2812::*;
mod touch; mod touch;
use touch::*; use touch::*;
mod bio;
use bio::*;
pub struct CmdEnv { pub struct CmdEnv {
common_env: CommonEnv, common_env: CommonEnv,
@ -106,6 +108,7 @@ pub struct CmdEnv {
aes_cmd: Aes, aes_cmd: Aes,
ws2812_cmd: Ws2812, ws2812_cmd: Ws2812,
touch_cmd: Touch, touch_cmd: Touch,
bio: BioLoader,
} }
impl CmdEnv { impl CmdEnv {
pub fn new(xns: &xous_names::XousNames) -> CmdEnv { pub fn new(xns: &xous_names::XousNames) -> CmdEnv {
@ -134,6 +137,7 @@ impl CmdEnv {
aes_cmd, aes_cmd,
ws2812_cmd: Ws2812::new(), ws2812_cmd: Ws2812::new(),
touch_cmd: Touch::new(), touch_cmd: Touch::new(),
bio: BioLoader::new(),
} }
} }
@ -162,6 +166,7 @@ impl CmdEnv {
&mut self.aes_cmd, &mut self.aes_cmd,
&mut self.ws2812_cmd, &mut self.ws2812_cmd,
&mut self.touch_cmd, &mut self.touch_cmd,
&mut self.bio,
]; ];
if let Some(cmdline) = maybe_cmdline { if let Some(cmdline) = maybe_cmdline {