mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
beginning of access control tests
This commit is contained in:
parent
9b5ef52e9c
commit
0f2d971c6b
1 changed files with 12 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ impl Repl {
|
|||
)
|
||||
};
|
||||
let mut rram = bao1x_hal::rram::Reram::new();
|
||||
rram.write_slice(addr, poke_inner);
|
||||
rram.write_slice(addr, poke_inner).ok();
|
||||
crate::println!("RRAM written {:x} into {:x}, {} times", value, addr, count);
|
||||
} else {
|
||||
return Err(Error::help(
|
||||
|
|
@ -1009,6 +1009,17 @@ impl Repl {
|
|||
"dbtest" => {
|
||||
crate::dabao_selftest::dabao_selftest();
|
||||
}
|
||||
"actest" => {
|
||||
let slot_man = bao1x_hal::protected_rram::SlotManager::new();
|
||||
crate::println!(
|
||||
"Slot 0(d): {:x?}",
|
||||
slot_man.read(&bao1x_hal::protected_rram::SlotIndex::Data(0))
|
||||
);
|
||||
crate::println!(
|
||||
"Slot 1(d): {:x?}",
|
||||
slot_man.read(&bao1x_hal::protected_rram::SlotIndex::Data(1))
|
||||
);
|
||||
}
|
||||
"echo" => {
|
||||
for word in args {
|
||||
crate::print!("{} ", word);
|
||||
|
|
|
|||
Loading…
Reference in a new issue