mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
cleanup warnings
This commit is contained in:
parent
863f17652d
commit
e3e3b3125c
2 changed files with 3 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
#[cfg(feature = "std")]
|
||||||
use xous::Result;
|
use xous::Result;
|
||||||
use xous::{send_message, MemoryRange, Message};
|
use xous::{send_message, MemoryRange, Message};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -154,9 +154,9 @@ impl Trng {
|
||||||
|
|
||||||
pub fn get_count_remaining(&self) -> u16 { self.count }
|
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
|
// some old test code
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue