embassy-rs / embassy

Modern embedded framework, using Rust and async.
https://embassy.dev
Apache License 2.0
4.79k stars 650 forks source link

STM32 ADC v3 and V4 DMA support #3128

Open andresv opened 2 days ago

andresv commented 2 days ago

This PR is on top of https://github.com/embassy-rs/embassy/pull/3106 and adds also DMA support to STM32 ADC V3. Original PR added it to V4.

Needs

Test

Tested on STM32G081.

andresv commented 2 days ago

It seems stm32 data needs some changes: https://ci.embassy.dev/jobs/8006878f541b. I could workaround this with #[cfg, but it becomes too messy.