Skip to content

Commit b19fbb0

Browse files
Add TX DMA implementation for SPI3 (#264)
* Add TX DMA implementation for SPI3 DMA2 channel 2 was selected after referring to the "DMA request mapping" section of the reference manual (section 13.3.7). Tested locally with a large number of LEDs and works well. * Feature gate connectivity-line-only DMA channel import in spi mod
1 parent 1d9ec16 commit b19fbb0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2424

2525
### Fixed
2626

27-
- Fix MonoTimer not working in debug mode.
27+
- Fix MonoTimer not working in debug mode.
28+
- Add missing TX DMA implementation for SPI3.
2829

2930
## [v0.6.1] - 2020-06-25
3031

@@ -36,7 +37,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3637
### Fixed
3738

3839
- Fix wrong frequency reported by `MonoTimer`
39-
- Fix wrong timings generated by `Timer::syst`
40+
- Fix wrong timings generated by `Timer::syst`
4041
- Fix period retrieval for timers
4142

4243
### Changed

src/spi.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ use crate::pac::{SPI1, SPI2};
4141

4242
use crate::afio::MAPR;
4343
use crate::dma::dma1::{C3, C5};
44+
#[cfg(feature = "connectivity")]
45+
use crate::dma::dma2::C2;
4446
use crate::dma::{Static, Transfer, TransferPayload, Transmit, TxDma, R};
4547
use crate::gpio::gpioa::{PA5, PA6, PA7};
4648
use crate::gpio::gpiob::{PB13, PB14, PB15, PB3, PB4, PB5};
@@ -585,3 +587,5 @@ macro_rules! spi_dma {
585587

586588
spi_dma!(SPI1, C3);
587589
spi_dma!(SPI2, C5);
590+
#[cfg(feature = "connectivity")]
591+
spi_dma!(SPI3, C2);

0 commit comments

Comments
 (0)