mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +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 }
|
modals = { path = "../modals", default-features = false }
|
||||||
ux-api = { path = "../../libs/ux-api", optional = true }
|
ux-api = { path = "../../libs/ux-api", optional = true }
|
||||||
pddb = { path = "../pddb", optional = true }
|
pddb = { path = "../pddb", optional = true }
|
||||||
xous-swapper = { path = "../xous-swapper" }
|
xous-swapper = { path = "../xous-swapper", optional = true }
|
||||||
|
|
||||||
# pddb testing
|
# pddb testing
|
||||||
rand = { version = "0.8.5", features = ["getrandom"], optional = true }
|
rand = { version = "0.8.5", features = ["getrandom"], optional = true }
|
||||||
|
|
@ -40,6 +40,7 @@ board-baosec = [
|
||||||
"cramium-hal",
|
"cramium-hal",
|
||||||
"usb-cramium/board-baosec",
|
"usb-cramium/board-baosec",
|
||||||
"pddb/board-baosec",
|
"pddb/board-baosec",
|
||||||
|
"xous-swapper",
|
||||||
]
|
]
|
||||||
hosted-baosec = [
|
hosted-baosec = [
|
||||||
"modals/hosted-baosec",
|
"modals/hosted-baosec",
|
||||||
|
|
@ -54,4 +55,5 @@ test-rekey = []
|
||||||
autobasis = ["rand_chacha", "rand"]
|
autobasis = ["rand_chacha", "rand"]
|
||||||
modal-testing = ["ux-api", "modals/modal-testing"]
|
modal-testing = ["ux-api", "modals/modal-testing"]
|
||||||
test-scrollbars = []
|
test-scrollbars = []
|
||||||
default = []
|
test-flash = []
|
||||||
|
default = ["test-flash"]
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ mod repl;
|
||||||
mod shell;
|
mod shell;
|
||||||
|
|
||||||
use cmds::*;
|
use cmds::*;
|
||||||
use xous_swapper::FlashPage;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
log_server::init_wait().unwrap();
|
log_server::init_wait().unwrap();
|
||||||
|
|
@ -15,6 +14,9 @@ fn main() {
|
||||||
|
|
||||||
tt.sleep_ms(4000).ok();
|
tt.sleep_ms(4000).ok();
|
||||||
|
|
||||||
|
#[cfg(all(feature = "board-baosec", feature = "test-flash"))]
|
||||||
|
{
|
||||||
|
use xous_swapper::FlashPage;
|
||||||
log::info!("start spi flash map test");
|
log::info!("start spi flash map test");
|
||||||
let swapper = xous_swapper::Swapper::new().unwrap();
|
let swapper = xous_swapper::Swapper::new().unwrap();
|
||||||
log::info!("got handle on swapper object");
|
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!("spislice read 8M (again): {:x?}", &spislice[test_start..test_start + 16]);
|
||||||
|
|
||||||
log::info!("end spi flash map test");
|
log::info!("end spi flash map test");
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "test-scrollbars")]
|
#[cfg(feature = "test-scrollbars")]
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue