Skip to content

Commit 63e9a9c

Browse files
committed
Merge spi_dma for master and slave together
Signed-off-by: Alexey Shvetsov <[email protected]>
1 parent 95ce69f commit 63e9a9c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/spi.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -681,13 +681,7 @@ impl<SPI: Instance, PINS, const BIDI: bool, W: FrameSize, OPERATION>
681681

682682
// Spi DMA
683683

684-
impl<SPI: Instance, PINS, const BIDI: bool> Spi<SPI, PINS, BIDI, u8, Master> {
685-
pub fn use_dma(self) -> DmaBuilder<SPI> {
686-
DmaBuilder { spi: self.spi }
687-
}
688-
}
689-
690-
impl<SPI: Instance, PINS, const BIDI: bool> Spi<SPI, PINS, BIDI, u8, Slave> {
684+
impl<SPI: Instance, PINS, const BIDI: bool, OPERATION> Spi<SPI, PINS, BIDI, u8, OPERATION> {
691685
pub fn use_dma(self) -> DmaBuilder<SPI> {
692686
DmaBuilder { spi: self.spi }
693687
}

0 commit comments

Comments
 (0)