File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
### Added
9
9
- Added a ` is_pending ` method to the ` gpio::Exti ` trait.
10
10
- Added alarm functionality to the RTC.
11
+ - Added ` Rtc.is_wakeup_timer_en ` .
11
12
12
13
## [ 0.3.0] - 2021-12-20
13
14
### Added
Original file line number Diff line number Diff line change @@ -511,6 +511,12 @@ impl Rtc {
511
511
self . rtc . cr . modify ( |_, w| w. wute ( ) . set_bit ( ) ) ;
512
512
}
513
513
514
+ /// Returns `true` if the wakeup timer is enabled.
515
+ #[ inline]
516
+ pub fn is_wakeup_timer_en ( & self ) -> bool {
517
+ self . rtc . cr . read ( ) . wute ( ) . bit_is_set ( )
518
+ }
519
+
514
520
/// Disable the wakeup timer.
515
521
#[ inline]
516
522
pub fn disable_wakeup_timer ( & mut self ) {
You can’t perform that action at this time.
0 commit comments