stm32-rs / stm32h7xx-hal

Peripheral access API for STM32H7 series microcontrollers
BSD Zero Clause License
215 stars 101 forks source link

feat(adc): spike for ADC reads using DMA w/ circular buffer #442

Closed dobrite closed 1 year ago

dobrite commented 1 year ago

This implements continuous ADC reads of multiple channels using DMA and a circular buffer. Values should be able to be read directly from the buffer from any context, not just interrupts.

This is unsafe, but it's working and so gives a jumping off point for improvements. I'm not actually sure if the use-case is even possible in safe Rust.

Seeking ideas to improve:

dobrite commented 1 year ago

Closing as no interest.