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

Support DMA #66

Open
Sh3Rm4n opened this issue Mar 8, 2020 · 4 comments
Open

Support DMA #66

Sh3Rm4n opened this issue Mar 8, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@Sh3Rm4n
Copy link
Member

Sh3Rm4n commented Mar 8, 2020

Direct Memory Access allows peripherals to write to memory directly, without needing buffers. This saves memory and is a handy feature.

@Sh3Rm4n Sh3Rm4n added the enhancement New feature or request label Mar 8, 2020
@teskje
Copy link
Collaborator

teskje commented Mar 31, 2020

I'm interested in this too. The project I'm working on pretty much demands DMA (in tandem with ADC and SPI). That's a major reason I don't use this HAL for it but wrote my own one, based on japari's blog post. I planned to upstream that at some point, but wasn't really sure how to go about it. My implementation is pretty specific to my needs and probably needs to be refactored a bit to be generally useful. And of course it supports only STM303xC MCUs.

I'd be willing to try my hand on implementing something that's useful for everyone. If you don't already have other plans, of course :)

@Sh3Rm4n
Copy link
Member Author

Sh3Rm4n commented Apr 1, 2020

Cool. I have no plans to implement this myself atm. So I'm looking forward for any support on this.

I'm okay with it being only compatible with the stm32303xc for now (similar to #47) If it is working, we can always incrementally add support for more stm32f3xx chips later in followup PRs. :)

@teskje
Copy link
Collaborator

teskje commented Apr 5, 2020

I've created a PR that adds MVP DMA support, i.e. the minimum amount of functionality that's useful to actually do something. I think it's a good idea to add more functionality incrementally instead of having one huge PR in the end that nobody understands and that takes forever to get merged.

Adding the missing DMA features I can think of:

@teskje
Copy link
Collaborator

teskje commented Apr 5, 2020

Here are a few references I found helpful for DMA implementation:

@Sh3Rm4n Sh3Rm4n mentioned this issue Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants