Skip to content

Commit be70b89

Browse files
committed
timer: Rename release to free()
1 parent ac96bc5 commit be70b89

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
9999
API. ([#263])
100100
- Change timer interrupt API to the same of the serial interface. ([#264])
101101
- Make timer Events `#[non_exhaustive]`. ([#264])
102+
- Renames timers `release()` function to `free()` to be more in line with the
103+
rest of this crate. ([#264])
102104

103105
## [v0.7.0] - 2021-06-18
104106

src/timer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ macro_rules! hal {
296296
}
297297

298298
/// Releases the TIM peripheral
299-
pub fn release(mut self) -> $TIMX {
299+
#[inline]
300+
pub fn free(mut self) -> $TIMX {
300301
self.stop();
301302
self.tim
302303
}

0 commit comments

Comments
 (0)