mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-08 04:56:43 +00:00
gate more options behind features
This commit is contained in:
parent
14bb0fda69
commit
c2c822e3a3
2 changed files with 6 additions and 0 deletions
|
|
@ -86,7 +86,9 @@ use test::*;
|
|||
mod pddb_cmd;
|
||||
#[cfg(feature = "pddb")]
|
||||
use pddb_cmd::*;
|
||||
#[cfg(feature = "usb")]
|
||||
mod usb;
|
||||
#[cfg(feature = "usb")]
|
||||
use usb::*;
|
||||
mod mbox;
|
||||
use mbox::*;
|
||||
|
|
@ -98,6 +100,7 @@ pub struct CmdEnv {
|
|||
trng_cmd: TrngCmd,
|
||||
#[cfg(feature = "pddb")]
|
||||
pddb_cmd: PddbCmd,
|
||||
#[cfg(feature = "usb")]
|
||||
usb_cmd: Usb,
|
||||
mbox: Mbox,
|
||||
}
|
||||
|
|
@ -125,6 +128,7 @@ impl CmdEnv {
|
|||
log::debug!("pddb");
|
||||
PddbCmd::new(&xns)
|
||||
},
|
||||
#[cfg(feature = "usb")]
|
||||
usb_cmd: {
|
||||
log::debug!("usb");
|
||||
Usb::new()
|
||||
|
|
@ -151,6 +155,7 @@ impl CmdEnv {
|
|||
&mut console_cmd,
|
||||
#[cfg(feature = "pddb")]
|
||||
&mut self.pddb_cmd,
|
||||
#[cfg(feature = "usb")]
|
||||
&mut self.usb_cmd,
|
||||
&mut self.mbox,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -363,6 +363,7 @@ impl<'a> ShellCmdApi<'a> for Mbox {
|
|||
// - on Precursor (100MHz): 27.60 seconds
|
||||
// - RV32 Daric (400MHz): 10.11 seconds (2.72x over Precursor)
|
||||
// - CM7 Daric (400MHz): 3.66 seconds (2.76x over RV32; 7.54x over Precursor)
|
||||
#[cfg(feature = "gam")]
|
||||
"clifford" => {
|
||||
log::info!("prefill");
|
||||
let prefill = unsafe { self.phys_mem.as_slice_mut() };
|
||||
|
|
|
|||
Loading…
Reference in a new issue