pub struct AonTimer { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl WatchDog for AonTimer
impl WatchDog for AonTimer
Source§fn setup(&self)
fn setup(&self)
The always-on timer will run on a ~125KHz (Verilator) or ~250kHz clock. The timers themselves are 32b wide, giving a maximum timeout window of roughly ~6 hours. For the wakeup timer, the pre-scaler extends the maximum timeout to ~1000 days.
The AON HW_IP has a watchdog and a wake-up timer (counts independantly of eachother),
although struct AonTimer
implements the wakeup timer functionality,
we only start and use the watchdog in the code below.
Source§fn tickle(&self)
fn tickle(&self)
This function must tickle the watchdog to reset the timer.
If the watchdog was previously suspended then this should also
resume the timer.
Auto Trait Implementations§
impl Freeze for AonTimer
impl !RefUnwindSafe for AonTimer
impl !Send for AonTimer
impl !Sync for AonTimer
impl Unpin for AonTimer
impl !UnwindSafe for AonTimer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more