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

Adds DMA implementation #48

Closed
wants to merge 118 commits into from
Closed

Adds DMA implementation #48

wants to merge 118 commits into from

Conversation

Jan561
Copy link

@Jan561 Jan561 commented Dec 20, 2019

This PR adds a DMA implementation with the following features:

  • DMA1 and DMA2 support
  • DMAMUX1 support
  • 16 Streams (8 for DMA1, 8 for DMA2)
  • 16 Mux-Channels (8 for DMA1, 8 for DMA2)
  • 8 Request Generators
  • Transfer module for memory safe DMA transfers (Not completed yet)
  • Implementations of Transfer for all peripherals

TODO

  • Extension trait
  • Documentation
  • Support for other MCUs (currently only STM32H743 is supported)
  • Enable clippy warnings for the whole crate again

Discussion

  • As the DMA is not an official embedded-hal item, we should consider making this an opt-in feature.

Note: Write access on my fork is enabled for collaborators. Collaboration is appreciated.

@Jan561
Copy link
Author

Jan561 commented Apr 17, 2020

The safe_transfer module is currently not really usable, and not intended to be used directly. There will be implementations of SafeTransfer for all peripherals, which take part of the peripheral configuration of the channel. I recently pushed an example into serial::dma for demonstration purposes. Note that this module is configured as a test-module to exclude it from compilation, as the implementation is based on an old version of SafeTransfer and has very likely many bugs.

@Jan561
Copy link
Author

Jan561 commented Apr 27, 2020

Closing as this PR is getting really cluttered with commits. When most of the work is done, I'll reopen / open an new PR.

@Jan561 Jan561 closed this Apr 27, 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.

3 participants