stm32: Make sure Output gpio driver is pushpull
This commit is contained in:
parent
0eaadfc125
commit
c5022b1196
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ impl<'d, T: Pin> Output<'d, T> {
|
||||||
let n = pin.pin() as usize;
|
let n = pin.pin() as usize;
|
||||||
r.pupdr().modify(|w| w.set_pupdr(n, vals::Pupdr::FLOATING));
|
r.pupdr().modify(|w| w.set_pupdr(n, vals::Pupdr::FLOATING));
|
||||||
r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT));
|
r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT));
|
||||||
|
r.otyper().modify(|w| w.set_ot(n, vals::Ot::PUSHPULL));
|
||||||
pin.set_speed(speed);
|
pin.set_speed(speed);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue