Skip to content
Snippets Groups Projects
Commit c5252eee authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

faster digital output switching when using the PWM

parent 254c5df9
No related branches found
No related tags found
No related merge requests found
...@@ -80,19 +80,19 @@ impl<'a> Pwm<'a, TIM1> { ...@@ -80,19 +80,19 @@ impl<'a> Pwm<'a, TIM1> {
// CH4 = PA11 = alternate push-pull // CH4 = PA11 = alternate push-pull
gpioa.crh.modify(|_, w| { gpioa.crh.modify(|_, w| {
w.mode8() w.mode8()
.output() .output50()
.cnf8() .cnf8()
.alt_push() .alt_push()
.mode9() .mode9()
.output() .output50()
.cnf9() .cnf9()
.alt_push() .alt_push()
.mode10() .mode10()
.output() .output50()
.cnf10() .cnf10()
.alt_push() .alt_push()
.mode11() .mode11()
.output() .output50()
.cnf11() .cnf11()
.alt_push() .alt_push()
}); });
...@@ -263,19 +263,19 @@ where ...@@ -263,19 +263,19 @@ where
// CH4 = PA3 = alternate push-pull // CH4 = PA3 = alternate push-pull
gpio.crl.modify(|_, w| { gpio.crl.modify(|_, w| {
w.mode0() w.mode0()
.output() .output50()
.cnf0() .cnf0()
.alt_push() .alt_push()
.mode1() .mode1()
.output() .output50()
.cnf1() .cnf1()
.alt_push() .alt_push()
.mode2() .mode2()
.output() .output50()
.cnf2() .cnf2()
.alt_push() .alt_push()
.mode3() .mode3()
.output() .output50()
.cnf3() .cnf3()
.alt_push() .alt_push()
}); });
...@@ -290,11 +290,11 @@ where ...@@ -290,11 +290,11 @@ where
// CH4 = PB1 = alternate push-pull (TODO) // CH4 = PB1 = alternate push-pull (TODO)
gpio.crl.modify(|_, w| { gpio.crl.modify(|_, w| {
w.mode6() w.mode6()
.output() .output50()
.cnf6() .cnf6()
.alt_push() .alt_push()
.mode7() .mode7()
.output() .output50()
.cnf7() .cnf7()
.alt_push() .alt_push()
}); });
...@@ -307,22 +307,22 @@ where ...@@ -307,22 +307,22 @@ where
// CH4 = PB9 = alternate push-pull // CH4 = PB9 = alternate push-pull
gpio.crl.modify(|_, w| { gpio.crl.modify(|_, w| {
w.mode6() w.mode6()
.output() .output50()
.cnf6() .cnf6()
.alt_push() .alt_push()
.mode7() .mode7()
.output() .output50()
.cnf7() .cnf7()
.alt_push() .alt_push()
}); });
gpio.crh.modify(|_, w| { gpio.crh.modify(|_, w| {
w.mode8() w.mode8()
.output() .output50()
.cnf8() .cnf8()
.alt_push() .alt_push()
.mode9() .mode9()
.output() .output50()
.cnf9() .cnf9()
.alt_push() .alt_push()
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment