Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TX DMA implementation for SPI3 #264

Merged
merged 2 commits into from
Sep 17, 2020
Merged

Conversation

mitchmindtree
Copy link
Contributor

@mitchmindtree mitchmindtree commented Sep 16, 2020

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.

Closes #263.

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.
@@ -41,6 +41,7 @@ use crate::pac::{SPI1, SPI2};

use crate::afio::MAPR;
use crate::dma::dma1::{C3, C5};
use crate::dma::dma2::C2;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also cfg this to avoid the warnings when compiling for other devices ?

@TheZoq2
Copy link
Member

TheZoq2 commented Sep 17, 2020

Looks good, thanks!

@TheZoq2 TheZoq2 merged commit b19fbb0 into stm32-rs:master Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DMA traits implemented for SpiTxDma for SPIs 1 and 2, but not 3
3 participants