mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
commit
c8986c40cc
2 changed files with 2 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ pub fn early_init() {
|
||||||
#[cfg(feature = "board-bringup")]
|
#[cfg(feature = "board-bringup")]
|
||||||
{
|
{
|
||||||
// do a quick TRNG test.
|
// do a quick TRNG test.
|
||||||
let mut trng = sce::trng::Trng::new(HW_TRNG_BASE);
|
let mut trng = cramium_hal::sce::trng::Trng::new(HW_TRNG_BASE);
|
||||||
trng.setup_raw_generation(256);
|
trng.setup_raw_generation(256);
|
||||||
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));
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@ impl XousDisplay {
|
||||||
// one extra line for handling the addressing setup
|
// one extra line for handling the addressing setup
|
||||||
(FB_LINES + 1) * FB_WIDTH_WORDS * size_of::<u32>(),
|
(FB_LINES + 1) * FB_WIDTH_WORDS * size_of::<u32>(),
|
||||||
0,
|
0,
|
||||||
|
None,
|
||||||
)
|
)
|
||||||
.expect("Couldn't allocate SPI channel for LCD")
|
.expect("Couldn't allocate SPI channel for LCD")
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue