diff options
| author | Henrik Alsér <[email protected]> | 2022-08-30 22:55:53 +0200 |
|---|---|---|
| committer | Henrik Alsér <[email protected]> | 2022-09-01 15:12:44 +0200 |
| commit | 99dd2a9386c83f4e625f4c849c8b5e519e12a87c (patch) | |
| tree | ad486447aafec033167a40df89a6c590d1d5ef48 /embassy-rp/src | |
| parent | 6d347af9fae3a9c594e13900796ec57537c402e6 (diff) | |
Reorder args
Diffstat (limited to 'embassy-rp/src')
| -rw-r--r-- | embassy-rp/src/spi.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-rp/src/spi.rs b/embassy-rp/src/spi.rs index 11aad6305..6f68777b2 100644 --- a/embassy-rp/src/spi.rs +++ b/embassy-rp/src/spi.rs | |||
| @@ -264,11 +264,11 @@ impl<'d, T: Instance, M: Mode> Spi<'d, T, M> { | |||
| 264 | impl<'d, T: Instance> Spi<'d, T, Async> { | 264 | impl<'d, T: Instance> Spi<'d, T, Async> { |
| 265 | pub fn new( | 265 | pub fn new( |
| 266 | inner: impl Peripheral<P = T> + 'd, | 266 | inner: impl Peripheral<P = T> + 'd, |
| 267 | tx_dma: impl Peripheral<P = impl Channel> + 'd, | ||
| 268 | rx_dma: impl Peripheral<P = impl Channel> + 'd, | ||
| 269 | clk: impl Peripheral<P = impl ClkPin<T> + 'd> + 'd, | 267 | clk: impl Peripheral<P = impl ClkPin<T> + 'd> + 'd, |
| 270 | mosi: impl Peripheral<P = impl MosiPin<T> + 'd> + 'd, | 268 | mosi: impl Peripheral<P = impl MosiPin<T> + 'd> + 'd, |
| 271 | miso: impl Peripheral<P = impl MisoPin<T> + 'd> + 'd, | 269 | miso: impl Peripheral<P = impl MisoPin<T> + 'd> + 'd, |
| 270 | tx_dma: impl Peripheral<P = impl Channel> + 'd, | ||
| 271 | rx_dma: impl Peripheral<P = impl Channel> + 'd, | ||
| 272 | config: Config, | 272 | config: Config, |
| 273 | ) -> Self { | 273 | ) -> Self { |
| 274 | into_ref!(tx_dma, rx_dma, clk, mosi, miso); | 274 | into_ref!(tx_dma, rx_dma, clk, mosi, miso); |
