diff --git a/embassy-rp/src/spi.rs b/embassy-rp/src/spi.rs index 8ae1c8b03..c5d9647db 100644 --- a/embassy-rp/src/spi.rs +++ b/embassy-rp/src/spi.rs @@ -67,12 +67,12 @@ fn calc_prescs(freq: u32) -> (u8, u8) { impl<'d, T: Instance, M: Mode> Spi<'d, T, M> { fn new_inner( inner: impl Peripheral
+ 'd,
- tx_dma: Option + 'd,
- tx_dma: impl Peripheral + 'd,
clk: impl Peripheral + 'd> + 'd,
mosi: impl Peripheral + 'd> + 'd,
+ tx_dma: impl Peripheral + 'd,
config: Config,
) -> Self {
into_ref!(tx_dma, clk, mosi);
Self::new_inner(
inner,
- Some(tx_dma.map_into()),
- None,
Some(clk.map_into()),
Some(mosi.map_into()),
None,
None,
+ Some(tx_dma.map_into()),
+ None,
config,
)
}
pub fn new_rxonly(
inner: impl Peripheral + 'd,
- rx_dma: impl Peripheral + 'd,
clk: impl Peripheral + 'd> + 'd,
miso: impl Peripheral + 'd> + 'd,
+ rx_dma: impl Peripheral + 'd,
config: Config,
) -> Self {
into_ref!(rx_dma, clk, miso);
Self::new_inner(
inner,
- None,
- Some(rx_dma.map_into()),
Some(clk.map_into()),
None,
Some(miso.map_into()),
None,
+ None,
+ Some(rx_dma.map_into()),
config,
)
}