mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Merge pull request #3469 from Meigs2/embassy-rp-fix-spi-rx-only-dma
Fix `embassy_rp::spi::new_rxonly` not taking in required `tx_dma`
This commit is contained in:
commit
80cb2bc4a5
@ -359,17 +359,18 @@ impl<'d, T: Instance> Spi<'d, T, Async> {
|
|||||||
inner: impl Peripheral<P = T> + 'd,
|
inner: impl Peripheral<P = T> + 'd,
|
||||||
clk: impl Peripheral<P = impl ClkPin<T> + 'd> + 'd,
|
clk: impl Peripheral<P = impl ClkPin<T> + 'd> + 'd,
|
||||||
miso: impl Peripheral<P = impl MisoPin<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,
|
rx_dma: impl Peripheral<P = impl Channel> + 'd,
|
||||||
config: Config,
|
config: Config,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
into_ref!(rx_dma, clk, miso);
|
into_ref!(tx_dma, rx_dma, clk, miso);
|
||||||
Self::new_inner(
|
Self::new_inner(
|
||||||
inner,
|
inner,
|
||||||
Some(clk.map_into()),
|
Some(clk.map_into()),
|
||||||
None,
|
None,
|
||||||
Some(miso.map_into()),
|
Some(miso.map_into()),
|
||||||
None,
|
None,
|
||||||
None,
|
Some(tx_dma.map_into()),
|
||||||
Some(rx_dma.map_into()),
|
Some(rx_dma.map_into()),
|
||||||
config,
|
config,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user