Add tx_dma to async spi

This commit is contained in:
Connor 2024-10-27 17:41:15 -05:00 committed by meigs2
parent cd9e581c65
commit ca8e885dbb

View File

@ -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,
)