mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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;
|
mod pddb_cmd;
|
||||||
#[cfg(feature = "pddb")]
|
#[cfg(feature = "pddb")]
|
||||||
use pddb_cmd::*;
|
use pddb_cmd::*;
|
||||||
|
#[cfg(feature = "usb")]
|
||||||
mod usb;
|
mod usb;
|
||||||
|
#[cfg(feature = "usb")]
|
||||||
use usb::*;
|
use usb::*;
|
||||||
mod mbox;
|
mod mbox;
|
||||||
use mbox::*;
|
use mbox::*;
|
||||||
|
|
@ -98,6 +100,7 @@ pub struct CmdEnv {
|
||||||
trng_cmd: TrngCmd,
|
trng_cmd: TrngCmd,
|
||||||
#[cfg(feature = "pddb")]
|
#[cfg(feature = "pddb")]
|
||||||
pddb_cmd: PddbCmd,
|
pddb_cmd: PddbCmd,
|
||||||
|
#[cfg(feature = "usb")]
|
||||||
usb_cmd: Usb,
|
usb_cmd: Usb,
|
||||||
mbox: Mbox,
|
mbox: Mbox,
|
||||||
}
|
}
|
||||||
|
|
@ -125,6 +128,7 @@ impl CmdEnv {
|
||||||
log::debug!("pddb");
|
log::debug!("pddb");
|
||||||
PddbCmd::new(&xns)
|
PddbCmd::new(&xns)
|
||||||
},
|
},
|
||||||
|
#[cfg(feature = "usb")]
|
||||||
usb_cmd: {
|
usb_cmd: {
|
||||||
log::debug!("usb");
|
log::debug!("usb");
|
||||||
Usb::new()
|
Usb::new()
|
||||||
|
|
@ -151,6 +155,7 @@ impl CmdEnv {
|
||||||
&mut console_cmd,
|
&mut console_cmd,
|
||||||
#[cfg(feature = "pddb")]
|
#[cfg(feature = "pddb")]
|
||||||
&mut self.pddb_cmd,
|
&mut self.pddb_cmd,
|
||||||
|
#[cfg(feature = "usb")]
|
||||||
&mut self.usb_cmd,
|
&mut self.usb_cmd,
|
||||||
&mut self.mbox,
|
&mut self.mbox,
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -363,6 +363,7 @@ impl<'a> ShellCmdApi<'a> for Mbox {
|
||||||
// - on Precursor (100MHz): 27.60 seconds
|
// - on Precursor (100MHz): 27.60 seconds
|
||||||
// - RV32 Daric (400MHz): 10.11 seconds (2.72x over Precursor)
|
// - RV32 Daric (400MHz): 10.11 seconds (2.72x over Precursor)
|
||||||
// - CM7 Daric (400MHz): 3.66 seconds (2.76x over RV32; 7.54x over Precursor)
|
// - CM7 Daric (400MHz): 3.66 seconds (2.76x over RV32; 7.54x over Precursor)
|
||||||
|
#[cfg(feature = "gam")]
|
||||||
"clifford" => {
|
"clifford" => {
|
||||||
log::info!("prefill");
|
log::info!("prefill");
|
||||||
let prefill = unsafe { self.phys_mem.as_slice_mut() };
|
let prefill = unsafe { self.phys_mem.as_slice_mut() };
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue