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 @@ -49,6 +49,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
49
49
This should make it easier to generically use the ` Serial ` peripheral. ([ #253 ] )
50
50
- Greatly increase coverage of ` Debug ` and ` defmt::Format ` implementations.
51
51
Almost all important types should now be supported. ([ #265 ] )
52
+ - Add a ` free() ` function to the RTC implementation to retrieve the passed-in
53
+ peripheral. ([ #266 ] )
52
54
53
55
[ `enumset` ] : https://crates.io/crates/enumset
54
56
Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ impl Rtc {
84
84
self . regs . cr . read ( ) . fmt ( ) . bit ( )
85
85
}
86
86
87
+ /// Release the RTC peripheral
88
+ pub fn free ( self ) -> RTC {
89
+ self . regs
90
+ }
91
+
87
92
/// As described in Section 27.3.7 in RM0316,
88
93
/// this function is used to disable write protection
89
94
/// when modifying an RTC register
You can’t perform that action at this time.
0 commit comments