diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-12-25 23:52:33 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-25 23:52:33 +0000 |
| commit | c29657f95a835dd0893333be409ded1efde9a9b9 (patch) | |
| tree | b96918635fdb8783e5c01abb8e2c65003e0916dc | |
| parent | d1dd66cfcacd9a519188d7799d9c045673fff738 (diff) | |
| parent | f2fb9a2ca631b2f11888b9e71e2b7d279014ada1 (diff) | |
Merge #1128
1128: Add missing SPI pins r=Dirbaio a=pferreir
The SPI definitions lack the pins which are not accessible on the pico (but are so e.g. on the stamp).
Co-authored-by: Pedro Ferreira <[email protected]>
| -rw-r--r-- | embassy-rp/src/spi.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/embassy-rp/src/spi.rs b/embassy-rp/src/spi.rs index 2b7a818d9..584370d56 100644 --- a/embassy-rp/src/spi.rs +++ b/embassy-rp/src/spi.rs | |||
| @@ -473,6 +473,16 @@ impl_pin!(PIN_16, SPI0, MisoPin); | |||
| 473 | impl_pin!(PIN_17, SPI0, CsPin); | 473 | impl_pin!(PIN_17, SPI0, CsPin); |
| 474 | impl_pin!(PIN_18, SPI0, ClkPin); | 474 | impl_pin!(PIN_18, SPI0, ClkPin); |
| 475 | impl_pin!(PIN_19, SPI0, MosiPin); | 475 | impl_pin!(PIN_19, SPI0, MosiPin); |
| 476 | impl_pin!(PIN_20, SPI0, MisoPin); | ||
| 477 | impl_pin!(PIN_21, SPI0, CsPin); | ||
| 478 | impl_pin!(PIN_22, SPI0, ClkPin); | ||
| 479 | impl_pin!(PIN_23, SPI0, MosiPin); | ||
| 480 | impl_pin!(PIN_24, SPI1, MisoPin); | ||
| 481 | impl_pin!(PIN_25, SPI1, CsPin); | ||
| 482 | impl_pin!(PIN_26, SPI1, ClkPin); | ||
| 483 | impl_pin!(PIN_27, SPI1, MosiPin); | ||
| 484 | impl_pin!(PIN_28, SPI1, MisoPin); | ||
| 485 | impl_pin!(PIN_29, SPI1, CsPin); | ||
| 476 | 486 | ||
| 477 | macro_rules! impl_mode { | 487 | macro_rules! impl_mode { |
| 478 | ($name:ident) => { | 488 | ($name:ident) => { |
