Skip to content

Commit

Permalink
Merge pull request #3469 from Meigs2/embassy-rp-fix-spi-rx-only-dma
Browse files Browse the repository at this point in the history
Fix `embassy_rp::spi::new_rxonly` not taking in required `tx_dma`
  • Loading branch information
Dirbaio authored Oct 27, 2024
2 parents cd9e581 + ca8e885 commit 80cb2bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions embassy-rp/src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,17 +359,18 @@ impl<'d, T: Instance> Spi<'d, T, Async> {
inner: impl Peripheral<P = T> + 'd,
clk: impl Peripheral<P = impl ClkPin<T> + 'd> + 'd,
miso: impl Peripheral<P = impl MisoPin<T> + 'd> + 'd,
tx_dma: impl Peripheral<P = impl Channel> + 'd,
rx_dma: impl Peripheral<P = impl Channel> + 'd,
config: Config,
) -> Self {
into_ref!(rx_dma, clk, miso);
into_ref!(tx_dma, rx_dma, clk, miso);
Self::new_inner(
inner,
Some(clk.map_into()),
None,
Some(miso.map_into()),
None,
None,
Some(tx_dma.map_into()),
Some(rx_dma.map_into()),
config,
)
Expand Down

0 comments on commit 80cb2bc

Please sign in to comment.