stm32/pwm: small cleanups

This commit is contained in:
Dario Nieuwenhuis
2021-11-27 03:05:10 +01:00
parent 22fad1e7bc
commit d7d1258411
2 changed files with 3 additions and 8 deletions

View File

@ -87,15 +87,11 @@ impl<'d, T: Instance> Pwm<'d, T> {
}
pub fn enable(&mut self, channel: Channel) {
unsafe {
self.set_enable(channel, true);
}
unsafe { self.set_enable(channel, true) }
}
pub fn disable(&mut self, channel: Channel) {
unsafe {
self.set_enable(channel, false);
}
unsafe { self.set_enable(channel, false) }
}
pub fn set_freq<F: Into<Hertz>>(&mut self, freq: F) {