stm32/gpio: fix wrong conf for AF input.
This commit is contained in:
parent
17e77ede3f
commit
1b3c34b923
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ pub(crate) mod sealed {
|
||||||
AFType::Input => {
|
AFType::Input => {
|
||||||
r.cr(crlh).modify(|w| {
|
r.cr(crlh).modify(|w| {
|
||||||
w.set_mode(n % 8, vals::Mode::INPUT);
|
w.set_mode(n % 8, vals::Mode::INPUT);
|
||||||
w.set_cnf(n % 8, vals::Cnf::PUSHPULL);
|
w.set_cnf(n % 8, vals::Cnf::OPENDRAIN);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
AFType::OutputPushPull => {
|
AFType::OutputPushPull => {
|
||||||
|
|
Loading…
Reference in a new issue