mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add pddb command to bao-console
This commit is contained in:
parent
b2f32b7b6f
commit
8d896b4dba
3 changed files with 1265 additions and 2 deletions
|
|
@ -21,6 +21,7 @@ cramium-emu = { path = "../cramium-emu", optional = true }
|
|||
usb-cramium = { path = "../usb-cramium" }
|
||||
modals = { path = "../modals", default-features = false }
|
||||
ux-api = { path = "../../libs/ux-api", optional = true }
|
||||
pddb = { path = "../pddb", features = ["gen2"] }
|
||||
|
||||
[features]
|
||||
cramium-soc = [
|
||||
|
|
@ -33,13 +34,18 @@ board-baosec = [
|
|||
"cram-hal-service",
|
||||
"cramium-hal",
|
||||
"usb-cramium/board-baosec",
|
||||
"pddb/board-baosec",
|
||||
]
|
||||
hosted-baosec = [
|
||||
"modals/hosted-baosec",
|
||||
"usb-cramium/hosted-baosec",
|
||||
"cramium-emu",
|
||||
"pddb/hosted-baosec",
|
||||
]
|
||||
|
||||
modal-testing = ["ux-api"]
|
||||
usb = []
|
||||
pddbtest = []
|
||||
test-rekey = []
|
||||
autobasis = []
|
||||
modal-testing = ["ux-api", "modals/modal-testing"]
|
||||
test-scrollbars = []
|
||||
default = []
|
||||
|
|
|
|||
|
|
@ -83,15 +83,21 @@ mod test;
|
|||
use test::*;
|
||||
mod trng_cmd;
|
||||
use trng_cmd::*;
|
||||
#[cfg(feature = "usb")]
|
||||
mod usb;
|
||||
#[cfg(feature = "usb")]
|
||||
use usb::*;
|
||||
mod pddb;
|
||||
use pddb::*;
|
||||
|
||||
pub struct CmdEnv {
|
||||
common_env: CommonEnv,
|
||||
lastverb: String,
|
||||
///// 2. declare storage for your command here.
|
||||
trng_cmd: TrngCmd,
|
||||
#[cfg(feature = "usb")]
|
||||
usb: Usb,
|
||||
pddb_cmd: PddbCmd,
|
||||
}
|
||||
impl CmdEnv {
|
||||
pub fn new(xns: &xous_names::XousNames) -> CmdEnv {
|
||||
|
|
@ -112,7 +118,9 @@ impl CmdEnv {
|
|||
log::debug!("trng");
|
||||
TrngCmd::new()
|
||||
},
|
||||
#[cfg(feature = "usb")]
|
||||
usb: Usb::new(),
|
||||
pddb_cmd: PddbCmd::new(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -132,7 +140,9 @@ impl CmdEnv {
|
|||
&mut ver_cmd,
|
||||
&mut self.trng_cmd,
|
||||
&mut console_cmd,
|
||||
#[cfg(feature = "usb")]
|
||||
&mut self.usb,
|
||||
&mut self.pddb_cmd,
|
||||
];
|
||||
|
||||
if let Some(cmdline) = maybe_cmdline {
|
||||
|
|
|
|||
1247
services/bao-console/src/cmds/pddb.rs
Normal file
1247
services/bao-console/src/cmds/pddb.rs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue