4:03 PM
Folks, I’ve got another STM32 ADC and HAL question. How can I disable ADC channels which aren't used at the given time?
Context. In one part of my program ADC2 is reading channels 1,2,4 in scan mode with DMA. In another part of the program ADC2 is reading channel 9.
I saw code examples which used ADC_RANK_NONE to disable channels [if I understood it correctly]. But the HAL for my microcontroller (STM32G4) doesn't define ADC_RANK_NONE . There should be another way, and I'm trying to find it.