mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
print trng status on bringup boot
This commit is contained in:
parent
75217075c1
commit
47dbecfd0b
1 changed files with 2 additions and 0 deletions
|
|
@ -140,6 +140,8 @@ pub fn early_init() {
|
||||||
for _ in 0..8 {
|
for _ in 0..8 {
|
||||||
crate::println!("trng raw: {:x}", trng.get_u32().unwrap_or(0xDEAD_BEEF));
|
crate::println!("trng raw: {:x}", trng.get_u32().unwrap_or(0xDEAD_BEEF));
|
||||||
}
|
}
|
||||||
|
let trng_csr = CSR::new(HW_TRNG_BASE as *mut u32);
|
||||||
|
crate::println!("trng status: {:x}", trng_csr.r(utra::trng::SFR_SR));
|
||||||
|
|
||||||
let rx_buf = unsafe {
|
let rx_buf = unsafe {
|
||||||
// safety: it's safe only because we are manually tracking the allocations in IFRAM0. Yuck!
|
// safety: it's safe only because we are manually tracking the allocations in IFRAM0. Yuck!
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue