diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-02-24 00:35:17 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-02-24 00:37:15 +0100 |
| commit | 1b3c34b923c2dcc42cc76b53d53cdb490cb249b9 (patch) | |
| tree | d05c0bccf7c8fb2a55ae4bb83ca95544277c964e | |
| parent | 17e77ede3fc25cc068e177a27cf286438f1c1c92 (diff) | |
stm32/gpio: fix wrong conf for AF input.
| -rw-r--r-- | embassy-stm32/src/gpio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs index 41658860a..3e12ea5cb 100644 --- a/embassy-stm32/src/gpio.rs +++ b/embassy-stm32/src/gpio.rs | |||
| @@ -410,7 +410,7 @@ pub(crate) mod sealed { | |||
| 410 | AFType::Input => { | 410 | AFType::Input => { |
| 411 | r.cr(crlh).modify(|w| { | 411 | r.cr(crlh).modify(|w| { |
| 412 | w.set_mode(n % 8, vals::Mode::INPUT); | 412 | w.set_mode(n % 8, vals::Mode::INPUT); |
| 413 | w.set_cnf(n % 8, vals::Cnf::PUSHPULL); | 413 | w.set_cnf(n % 8, vals::Cnf::OPENDRAIN); |
| 414 | }); | 414 | }); |
| 415 | } | 415 | } |
| 416 | AFType::OutputPushPull => { | 416 | AFType::OutputPushPull => { |
