File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -453,6 +453,18 @@ impl Default for Interrupts {
453
453
454
454
455
455
/// The RTC wakeup timer
456
+ ///
457
+ /// This timer can be used in two ways:
458
+ /// 1. Continually call `wait` until it returns `Ok(())`.
459
+ /// 2. Set up the RTC interrupt.
460
+ ///
461
+ /// If you use an interrupt, you should still call `wait` once, after the
462
+ /// interrupt fired. This should return `Ok(())` immediately. Doing this will
463
+ /// reset the timer flag. If you don't do this, the interrupt will not fire
464
+ /// again, if you go to sleep.
465
+ ///
466
+ /// You don't need to call `wait`, if you call `cancel`, as that also resets the
467
+ /// flag. Restarting the timer by calling `start` will also reset the flag.
456
468
pub struct WakeupTimer < ' r > {
457
469
rtc : & ' r mut RTC ,
458
470
}
You can’t perform that action at this time.
0 commit comments