mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
add aes test options to command environment
This commit is contained in:
parent
55d0a6c947
commit
f2c61e44cc
1 changed files with 12 additions and 0 deletions
|
|
@ -91,6 +91,10 @@ use usb::*;
|
||||||
mod pddb;
|
mod pddb;
|
||||||
#[cfg(feature = "with-pddb")]
|
#[cfg(feature = "with-pddb")]
|
||||||
use pddb::*;
|
use pddb::*;
|
||||||
|
#[cfg(feature = "aestests")]
|
||||||
|
mod aes_cmd;
|
||||||
|
#[cfg(feature = "aestests")]
|
||||||
|
use aes_cmd::*;
|
||||||
mod i2cdetect;
|
mod i2cdetect;
|
||||||
use i2cdetect::*;
|
use i2cdetect::*;
|
||||||
mod cute;
|
mod cute;
|
||||||
|
|
@ -105,6 +109,8 @@ pub struct CmdEnv {
|
||||||
usb: Usb,
|
usb: Usb,
|
||||||
#[cfg(feature = "with-pddb")]
|
#[cfg(feature = "with-pddb")]
|
||||||
pddb_cmd: PddbCmd,
|
pddb_cmd: PddbCmd,
|
||||||
|
#[cfg(feature = "aestests")]
|
||||||
|
aes_cmd: Aes,
|
||||||
}
|
}
|
||||||
impl CmdEnv {
|
impl CmdEnv {
|
||||||
pub fn new(xns: &xous_names::XousNames) -> CmdEnv {
|
pub fn new(xns: &xous_names::XousNames) -> CmdEnv {
|
||||||
|
|
@ -117,6 +123,8 @@ impl CmdEnv {
|
||||||
trng: trng::Trng::new(&xns).unwrap(),
|
trng: trng::Trng::new(&xns).unwrap(),
|
||||||
xns: xous_names::XousNames::new().unwrap(),
|
xns: xous_names::XousNames::new().unwrap(),
|
||||||
};
|
};
|
||||||
|
#[cfg(feature = "aestests")]
|
||||||
|
let aes_cmd = Aes::new(&xns, &mut _common);
|
||||||
CmdEnv {
|
CmdEnv {
|
||||||
common_env: _common,
|
common_env: _common,
|
||||||
lastverb: String::new(),
|
lastverb: String::new(),
|
||||||
|
|
@ -129,6 +137,8 @@ impl CmdEnv {
|
||||||
usb: Usb::new(),
|
usb: Usb::new(),
|
||||||
#[cfg(feature = "with-pddb")]
|
#[cfg(feature = "with-pddb")]
|
||||||
pddb_cmd: PddbCmd::new(),
|
pddb_cmd: PddbCmd::new(),
|
||||||
|
#[cfg(feature = "aestests")]
|
||||||
|
aes_cmd,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -157,6 +167,8 @@ impl CmdEnv {
|
||||||
&mut self.usb,
|
&mut self.usb,
|
||||||
#[cfg(feature = "with-pddb")]
|
#[cfg(feature = "with-pddb")]
|
||||||
&mut self.pddb_cmd,
|
&mut self.pddb_cmd,
|
||||||
|
#[cfg(feature = "aestests")]
|
||||||
|
&mut self.aes_cmd,
|
||||||
];
|
];
|
||||||
|
|
||||||
if let Some(cmdline) = maybe_cmdline {
|
if let Some(cmdline) = maybe_cmdline {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue