mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add ssid, suspend/resume test to the OQC test routine; comment out keyboard
keyboard routine still pending fixing a possible bug in xous allocator
This commit is contained in:
parent
ce026e661d
commit
029c845359
1 changed files with 14 additions and 1 deletions
|
|
@ -398,7 +398,10 @@ impl<'a> ShellCmdApi<'a> for Test {
|
||||||
log::info!("{}|ASTOP|", SENTINEL);
|
log::info!("{}|ASTOP|", SENTINEL);
|
||||||
}
|
}
|
||||||
"oqc" => {
|
"oqc" => {
|
||||||
|
let susres = susres::Susres::new_without_hook(&env.xns).unwrap();
|
||||||
env.llio.wfi_override(true).unwrap();
|
env.llio.wfi_override(true).unwrap();
|
||||||
|
// activate SSID scanning while the test runs
|
||||||
|
env.com.set_ssid_scanning(true).expect("couldn't turn on SSID scanning");
|
||||||
//xous::rsyscall(xous::SysCall::IncreaseHeap(65536, xous::MemoryFlags::R | xous::MemoryFlags::W)).expect("couldn't increase our heap");
|
//xous::rsyscall(xous::SysCall::IncreaseHeap(65536, xous::MemoryFlags::R | xous::MemoryFlags::W)).expect("couldn't increase our heap");
|
||||||
ret.clear();
|
ret.clear();
|
||||||
#[cfg(any(target_os = "none", target_os = "xous"))]
|
#[cfg(any(target_os = "none", target_os = "xous"))]
|
||||||
|
|
@ -425,7 +428,12 @@ impl<'a> ShellCmdApi<'a> for Test {
|
||||||
GlyphStyle::Small,
|
GlyphStyle::Small,
|
||||||
8
|
8
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// brief pause to check the screen
|
||||||
test_modal.gam.selftest(18_000);
|
test_modal.gam.selftest(18_000);
|
||||||
|
|
||||||
|
/*
|
||||||
|
// now keyboard test
|
||||||
log::info!("making helper");
|
log::info!("making helper");
|
||||||
test_modal.spawn_helper(kbdtest_sid, test_modal.sid,
|
test_modal.spawn_helper(kbdtest_sid, test_modal.sid,
|
||||||
TestOp::ModalRedraw.to_u32().unwrap(),
|
TestOp::ModalRedraw.to_u32().unwrap(),
|
||||||
|
|
@ -521,8 +529,13 @@ impl<'a> ShellCmdApi<'a> for Test {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
handle.join().unwrap();
|
handle.join().unwrap();
|
||||||
|
*/
|
||||||
|
susres.initiate_suspend().unwrap();
|
||||||
|
env.ticktimer.sleep_ms(500).unwrap(); // pause for the suspend/resume cycle
|
||||||
|
|
||||||
write!(ret, "CHECK: was backlight on?\nIf so, then PASS").unwrap();
|
write!(ret, "{}\nCHECK: was backlight on?\nIf so, then PASS\nThen engage PROG switch.",
|
||||||
|
env.com.ssid_fetch_as_string().unwrap()
|
||||||
|
).unwrap();
|
||||||
env.com.set_backlight(0, 0).unwrap();
|
env.com.set_backlight(0, 0).unwrap();
|
||||||
env.llio.wfi_override(false).unwrap();
|
env.llio.wfi_override(false).unwrap();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue