mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
apply more autoformat. Why did that not trigger on save?
This commit is contained in:
parent
8414f08aae
commit
c6a0f7f629
1 changed files with 4 additions and 4 deletions
|
|
@ -289,16 +289,16 @@ impl SwapHal {
|
|||
let mut trng = sce::trng::Trng::new(utralib::generated::HW_TRNG_BASE as usize);
|
||||
trng.setup_raw_generation(32);
|
||||
|
||||
#[cfg(feature="dump-trng")]
|
||||
#[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
|
||||
{
|
||||
}
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue