stm32/gpio: fix wrong conf for AF input.

This commit is contained in:
Dario Nieuwenhuis 2022-02-24 00:35:17 +01:00
parent 17e77ede3f
commit 1b3c34b923

View File

@ -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 => {