diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-10-21 10:06:57 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-21 10:06:57 +0000 |
| commit | 2b4e2bcbaeed7702fd78dafcaa7bd30570f2c746 (patch) | |
| tree | 99a6eb0c638665e4e1575f2e89932ea59dc6f244 | |
| parent | a895b6351f68c1af104d2d65e6df121b4a100808 (diff) | |
| parent | d2a79a46c51cf55a8eef88cc987484dd0eda8955 (diff) | |
Merge #442
442: Configure the correct pin instances r=lulf a=lulf
Co-authored-by: Ulf Lilleengen <[email protected]>
| -rw-r--r-- | embassy-stm32/src/spi/v2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/spi/v2.rs b/embassy-stm32/src/spi/v2.rs index cb871a9a0..9b8a74d7b 100644 --- a/embassy-stm32/src/spi/v2.rs +++ b/embassy-stm32/src/spi/v2.rs | |||
| @@ -70,9 +70,9 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> { | |||
| 70 | unsafe { | 70 | unsafe { |
| 71 | sck.as_ref() | 71 | sck.as_ref() |
| 72 | .map(|x| Self::configure_pin(x.block(), x.pin() as _, sck_af)); | 72 | .map(|x| Self::configure_pin(x.block(), x.pin() as _, sck_af)); |
| 73 | sck.as_ref() | 73 | mosi.as_ref() |
| 74 | .map(|x| Self::configure_pin(x.block(), x.pin() as _, mosi_af)); | 74 | .map(|x| Self::configure_pin(x.block(), x.pin() as _, mosi_af)); |
| 75 | sck.as_ref() | 75 | miso.as_ref() |
| 76 | .map(|x| Self::configure_pin(x.block(), x.pin() as _, miso_af)); | 76 | .map(|x| Self::configure_pin(x.block(), x.pin() as _, miso_af)); |
| 77 | } | 77 | } |
| 78 | 78 | ||
