Help with ADC + DMA integration.
Hello.
I want to integrate ADC with DMA, and calculate the average count of all convertions.
I'm using the following code:
In adc.c:
```
if(HAL_ADC_PollForConversion(&hadc1, 10) == HAL_OK) {
uint16_t value = HAL_ADC_GetValue(&hadc1);
USART_Send("%.3f", value);
HAL_ADC_Start(&hadc1);
}
```
In main.c:
```
HAL_ADC_Start_DMA(&hadc1, (uint8_t*) AVG_BUF, AVG_BUF_SIZE);
```
However HAL_ADC_GetValue() seems to not use DMA.
I want it to explicitely use DMA to read.
