Skip to content

Conversation

clubby789
Copy link
Contributor

@clubby789 clubby789 commented Jul 23, 2025

This moves the ADC and channel configuration code to a new public function prepare_read, then adds a read_without_preparing function which just starts a DMA transfer and starts conversion. This reduces wasted time reconfiguring the same channels repeatedly.

Tested on my STM32WB55RG

@clubby789
Copy link
Contributor Author

By the way, I didn't touch it because I was unsure if there was a good reason, but why is continuous conversion mode used if we stop the ADC after receiving the first conversion? Wouldn't it be simpler to just use single conversion mode?

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.

1 participant