mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
remove deprecated testing feature
This commit is contained in:
parent
0437a1263b
commit
4c84fc523d
1 changed files with 0 additions and 18 deletions
|
|
@ -154,24 +154,6 @@ impl SwapHal {
|
||||||
let mut trng = sce::trng::Trng::new(utralib::generated::HW_TRNG_BASE as usize);
|
let mut trng = sce::trng::Trng::new(utralib::generated::HW_TRNG_BASE as usize);
|
||||||
trng.setup_raw_generation(32);
|
trng.setup_raw_generation(32);
|
||||||
|
|
||||||
#[cfg(feature = "dump-trng")]
|
|
||||||
{
|
|
||||||
let duart = utralib::generated::utra::duart::HW_DUART_BASE as *mut u32;
|
|
||||||
loop {
|
|
||||||
let d = trng.get_raw();
|
|
||||||
for b in d.to_le_bytes() {
|
|
||||||
unsafe {
|
|
||||||
while duart.add(utralib::generated::utra::duart::SFR_SR.offset()).read_volatile()
|
|
||||||
!= 0
|
|
||||||
{}
|
|
||||||
duart
|
|
||||||
.add(utralib::generated::utra::duart::SFR_TXD.offset())
|
|
||||||
.write_volatile(b as char as u32);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// The first seed is always 0.
|
// The first seed is always 0.
|
||||||
let mut seed = [0u8; 32];
|
let mut seed = [0u8; 32];
|
||||||
// println!("seed: {:x?}", seed); // used to eyeball that things are working correctly
|
// println!("seed: {:x?}", seed); // used to eyeball that things are working correctly
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue