mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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();
|
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);
|
crate::println!("RRAM written {:x} into {:x}, {} times", value, addr, count);
|
||||||
} else {
|
} else {
|
||||||
return Err(Error::help(
|
return Err(Error::help(
|
||||||
|
|
@ -1009,6 +1009,17 @@ impl Repl {
|
||||||
"dbtest" => {
|
"dbtest" => {
|
||||||
crate::dabao_selftest::dabao_selftest();
|
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" => {
|
"echo" => {
|
||||||
for word in args {
|
for word in args {
|
||||||
crate::print!("{} ", word);
|
crate::print!("{} ", word);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue