Question
STM32L151: HAL ADC DMA wait for completion of transfer
Hello Guys, I want to read multiple channels from my adc using DMA.
However I want to implement it the following way:
while(1)
{
1. Start ADC DMA (scan, discontinous conv.)
2. Wait for the completion (the CPU should just wait until the conversion of the multiple channels is finished)
3. Continue with other code
}
Is there a simple way to implement the waiting?
(I know its not efficient to wait but this is what my use case requires)