Configure the correct pin instances
This commit is contained in:
parent
a895b6351f
commit
d2a79a46c5
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue