Skip to content

Commit 0081f87

Browse files
committed
Rename and unbr0ke rtic-spi-slave-dma
Signed-off-by: Alexey Shvetsov <[email protected]>
1 parent b2a7f69 commit 0081f87

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2626
- Bump `synopsys-usb-otg` to `0.3.1` [#535]
2727
- Renamed and updated rtic-button example (was rtic) [#551]
2828
- Rename adc_dma_rtic to rtic-adc-dma and move it ot defmt [#552]
29+
- Rename spi_slave_dma_rtic to rtic-spi-slave-dma and unbroke it [#552]
2930

3031
### Removed
3132
- `i2s-audio-out-dma.rs` example, too difficult to fix.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,6 @@ name = "hd44780"
501501
required-features = ["device-selected"]
502502

503503
[[example]]
504-
name = "spi_slave_dma_rtic"
504+
name = "rtic-spi-slave-dma"
505505
required-features = ["stm32f411", "rtic"]
506506

File renamed without changes.

src/spi.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,12 @@ impl<SPI: Instance, PINS, const BIDI: bool> Spi<SPI, PINS, BIDI, u8, Master> {
687687
}
688688
}
689689

690+
impl<SPI: Instance, PINS, const BIDI: bool> Spi<SPI, PINS, BIDI, u8, Slave> {
691+
pub fn use_dma(self) -> DmaBuilder<SPI> {
692+
DmaBuilder { spi: self.spi }
693+
}
694+
}
695+
690696
pub struct DmaBuilder<SPI> {
691697
spi: SPI,
692698
}

0 commit comments

Comments
 (0)