diff options
| -rw-r--r-- | embassy-rp/src/spi.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-rp/src/spi.rs b/embassy-rp/src/spi.rs index b89df74a2..a8f4e72c7 100644 --- a/embassy-rp/src/spi.rs +++ b/embassy-rp/src/spi.rs | |||
| @@ -359,17 +359,18 @@ impl<'d, T: Instance> Spi<'d, T, Async> { | |||
| 359 | inner: impl Peripheral<P = T> + 'd, | 359 | inner: impl Peripheral<P = T> + 'd, |
| 360 | clk: impl Peripheral<P = impl ClkPin<T> + 'd> + 'd, | 360 | clk: impl Peripheral<P = impl ClkPin<T> + 'd> + 'd, |
| 361 | miso: impl Peripheral<P = impl MisoPin<T> + 'd> + 'd, | 361 | miso: impl Peripheral<P = impl MisoPin<T> + 'd> + 'd, |
| 362 | tx_dma: impl Peripheral<P = impl Channel> + 'd, | ||
| 362 | rx_dma: impl Peripheral<P = impl Channel> + 'd, | 363 | rx_dma: impl Peripheral<P = impl Channel> + 'd, |
| 363 | config: Config, | 364 | config: Config, |
| 364 | ) -> Self { | 365 | ) -> Self { |
| 365 | into_ref!(rx_dma, clk, miso); | 366 | into_ref!(tx_dma, rx_dma, clk, miso); |
| 366 | Self::new_inner( | 367 | Self::new_inner( |
| 367 | inner, | 368 | inner, |
| 368 | Some(clk.map_into()), | 369 | Some(clk.map_into()), |
| 369 | None, | 370 | None, |
| 370 | Some(miso.map_into()), | 371 | Some(miso.map_into()), |
| 371 | None, | 372 | None, |
| 372 | None, | 373 | Some(tx_dma.map_into()), |
| 373 | Some(rx_dma.map_into()), | 374 | Some(rx_dma.map_into()), |
| 374 | config, | 375 | config, |
| 375 | ) | 376 | ) |
