stm32f0xx-hal icon indicating copy to clipboard operation
stm32f0xx-hal copied to clipboard

Shamelessly copy DMA implementation from stm32f1xx-hal crate.

Open matoushybl opened this issue 4 years ago • 10 comments

This PR adds DMA interface created using embedded-dma traits, that was copied from the stm32f1xx-hal crate and adapted for the needs of STM32F0 controller line.

DMA2 for STM32F091 was not yet added as to my understanding it requires some special handling.

matoushybl avatar Nov 10 '20 19:11 matoushybl

Very nice! Obviously needs some more work though. I'd probably split out the stm32f0 bump to see whether there's any fallout from that upgrade (and fix it) before adding DMA.

therealprof avatar Nov 10 '20 23:11 therealprof

Good idea, I’ll make a separate PR for updating dependencies and have a look at the failing CI.

matoushybl avatar Nov 11 '20 06:11 matoushybl

bors try

therealprof avatar Nov 14 '20 10:11 therealprof

try

Merge conflict.

bors[bot] avatar Nov 14 '20 10:11 bors[bot]

Hi, the PR still doesn't pass CI as the f1xx-hal uses #[non_exhaustive] feature on enums and they do not specify the minimum supported Rust version. I think that we shouldn't specify the MSRV as of now, since this HAL implementation is very limited and I am willing to start working on it and bring it up to the at least the same level as the other HALs and fixed MSRV could potentionaly cripple the development. What do you think @therealprof ?

Removing he non_exhaustive attribute is not a problem, but it would break the cross HAL compatibility.

matoushybl avatar Nov 14 '20 10:11 matoushybl

I'm not a big fan of MSRV in general. Let's just bump the version in CI.

therealprof avatar Nov 14 '20 10:11 therealprof

Ok, I'll make the PR when I have time in a few days. Should I remove checking against some specific rust version in general or just bump the specified version to a current Rust version?

What about the timing out bors? Do you have any idea why it fails? Fix for it could also be a part of that PR.

matoushybl avatar Nov 14 '20 10:11 matoushybl

Any updates here? Can you add an example using DMA?

therealprof avatar Apr 04 '21 11:04 therealprof

@therealprof Sorry for ignoring my PRs and you, I am a bit busy and don't develop on F0 often nowadays. I have the work on these PRs on my TODO list and will get back to them when I have a bit more time - unfortunately in June.

matoushybl avatar Apr 28 '21 07:04 matoushybl

No worries, I can totally relate. Busy times with unrelated things for me as well...

therealprof avatar Apr 28 '21 08:04 therealprof