Skip to content
Snippets Groups Projects
Commit 8aecbea4 authored by homunkulus's avatar homunkulus
Browse files

Auto merge of #25 - nikhilkalige:patch-1, r=japaric

Fix PWM generation for TIM1

`MOE` bit in `BDTR` register needs to be set.
parents 3efe73cf e50ae4c2
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,8 @@ impl<'a> Pwm<'a, TIM1> {
.clear_bit()
});
tim1.bdtr.modify(|_, w| w.moe().set_bit());
self._set_period(period);
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