Skip to content
Snippets Groups Projects
Commit e50ae4c2 authored by Nikhil Kalige's avatar Nikhil Kalige Committed by GitHub
Browse files

Fix PWM generation for TIM1

parent 584d892f
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,8 @@ impl<'a> Pwm<'a, TIM1> { ...@@ -128,6 +128,8 @@ impl<'a> Pwm<'a, TIM1> {
.clear_bit() .clear_bit()
}); });
tim1.bdtr.modify(|_, w| w.moe().set_bit());
self._set_period(period); self._set_period(period);
tim1.cr1.write(|w| unsafe { tim1.cr1.write(|w| unsafe {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment