Merge #442
442: Configure the correct pin instances r=lulf a=lulf Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
This commit is contained in:
commit
2b4e2bcbae
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