mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-22 09:23:16 +00:00
make the flash test optional based on the configuration
allow the console to be built for hosted targets
This commit is contained in:
parent
7947949589
commit
4251686c1f
2 changed files with 36 additions and 31 deletions
|
|
@ -22,7 +22,7 @@ usb-cramium = { path = "../usb-cramium" }
|
|||
modals = { path = "../modals", default-features = false }
|
||||
ux-api = { path = "../../libs/ux-api", optional = true }
|
||||
pddb = { path = "../pddb", optional = true }
|
||||
xous-swapper = { path = "../xous-swapper" }
|
||||
xous-swapper = { path = "../xous-swapper", optional = true }
|
||||
|
||||
# pddb testing
|
||||
rand = { version = "0.8.5", features = ["getrandom"], optional = true }
|
||||
|
|
@ -40,6 +40,7 @@ board-baosec = [
|
|||
"cramium-hal",
|
||||
"usb-cramium/board-baosec",
|
||||
"pddb/board-baosec",
|
||||
"xous-swapper",
|
||||
]
|
||||
hosted-baosec = [
|
||||
"modals/hosted-baosec",
|
||||
|
|
@ -54,4 +55,5 @@ test-rekey = []
|
|||
autobasis = ["rand_chacha", "rand"]
|
||||
modal-testing = ["ux-api", "modals/modal-testing"]
|
||||
test-scrollbars = []
|
||||
default = []
|
||||
test-flash = []
|
||||
default = ["test-flash"]
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ mod repl;
|
|||
mod shell;
|
||||
|
||||
use cmds::*;
|
||||
use xous_swapper::FlashPage;
|
||||
|
||||
fn main() {
|
||||
log_server::init_wait().unwrap();
|
||||
|
|
@ -15,6 +14,9 @@ fn main() {
|
|||
|
||||
tt.sleep_ms(4000).ok();
|
||||
|
||||
#[cfg(all(feature = "board-baosec", feature = "test-flash"))]
|
||||
{
|
||||
use xous_swapper::FlashPage;
|
||||
log::info!("start spi flash map test");
|
||||
let swapper = xous_swapper::Swapper::new().unwrap();
|
||||
log::info!("got handle on swapper object");
|
||||
|
|
@ -45,6 +47,7 @@ fn main() {
|
|||
log::info!("spislice read 8M (again): {:x?}", &spislice[test_start..test_start + 16]);
|
||||
|
||||
log::info!("end spi flash map test");
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-scrollbars")]
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue