stm32/gpio: fix wrong conf for AF input.
This commit is contained in:
parent
17e77ede3f
commit
1b3c34b923
@ -410,7 +410,7 @@ pub(crate) mod sealed {
|
||||
AFType::Input => {
|
||||
r.cr(crlh).modify(|w| {
|
||||
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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user