cleanup warnings

This commit is contained in:
bunnie 2024-04-28 02:57:24 +08:00
parent 863f17652d
commit e3e3b3125c
2 changed files with 3 additions and 2 deletions

View file

@ -1,3 +1,4 @@
#[cfg(feature = "std")]
use xous::Result;
use xous::{send_message, MemoryRange, Message};

View file

@ -154,9 +154,9 @@ impl Trng {
pub fn get_count_remaining(&self) -> u16 { self.count }
pub fn start(&mut self) { self.csr.wo(utra::trng::SFR_AR_GEN, 0x5A); }
pub fn start(&mut self) { self.csr.wo(utra::trng::SFR_AR_GEN, START_CODE); }
pub fn stop(&mut self) { self.csr.wo(utra::trng::SFR_AR_GEN, 0xA5); }
pub fn stop(&mut self) { self.csr.wo(utra::trng::SFR_AR_GEN, STOP_CODE); }
}
// some old test code