We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 101cdf4 commit 1df3703Copy full SHA for 1df3703
src/gpio.rs
@@ -845,7 +845,7 @@ where
845
}
846
8..=15 => {
847
gpio.crh()
848
- .modify(|_, w| unsafe { w.mode(N - 16).bits(speed as u8) });
+ .modify(|_, w| unsafe { w.mode(N - 8).bits(speed as u8) });
849
850
_ => unreachable!(),
851
@@ -979,8 +979,8 @@ where
979
980
981
gpio.crh().modify(|_, w| unsafe {
982
- w.mode(N - 16).bits(MODE::MODE as u8);
983
- w.cnf(N - 16).bits(MODE::CNF as u8)
+ w.mode(N - 8).bits(MODE::MODE as u8);
+ w.cnf(N - 8).bits(MODE::CNF as u8)
984
});
985
986
0 commit comments