diff options
author | Thales Fragoso <thales.fragosoz@gmail.com> | 2021-06-27 13:25:35 -0300 |
---|---|---|
committer | Thales Fragoso <thales.fragosoz@gmail.com> | 2021-06-27 13:25:35 -0300 |
commit | c5022b1196e45fb772d902fd0f4dbced2ef120eb (patch) | |
tree | 32d1e879794de05884ae3edcc45b13ad17d8eb68 /embassy-stm32 | |
parent | 0eaadfc1253285c04340e32f14efa1133cb30dbe (diff) | |
download | embassy-c5022b1196e45fb772d902fd0f4dbced2ef120eb.zip |
stm32: Make sure Output gpio driver is pushpull
Diffstat (limited to 'embassy-stm32')
-rw-r--r-- | embassy-stm32/src/gpio.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs index 1bc5553a..bf8400ca 100644 --- a/embassy-stm32/src/gpio.rs +++ b/embassy-stm32/src/gpio.rs @@ -131,6 +131,7 @@ impl<'d, T: Pin> Output<'d, T> { let n = pin.pin() as usize; r.pupdr().modify(|w| w.set_pupdr(n, vals::Pupdr::FLOATING)); 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); }); |