diff options
| author | Connor <[email protected]> | 2024-10-27 17:41:15 -0500 |
|---|---|---|
| committer | meigs2 <[email protected]> | 2024-10-27 17:57:59 -0500 |
| commit | ca8e885dbb65541a380e66c678ae148c24782e8e (patch) | |
| tree | 78c815c332a080f45e965a5187475dd4f2df9b89 | |
| parent | cd9e581c65be07a2006f4b9577460df509064bbe (diff) | |
Add tx_dma to async spi
| -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 | ) |
