Configure the correct pin instances

This commit is contained in:
Ulf Lilleengen 2021-10-21 11:57:00 +02:00
parent a895b6351f
commit d2a79a46c5

View file

@ -70,9 +70,9 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
unsafe {
sck.as_ref()
.map(|x| Self::configure_pin(x.block(), x.pin() as _, sck_af));
sck.as_ref()
mosi.as_ref()
.map(|x| Self::configure_pin(x.block(), x.pin() as _, mosi_af));
sck.as_ref()
miso.as_ref()
.map(|x| Self::configure_pin(x.block(), x.pin() as _, miso_af));
}