Multiple ADC channels on STM32L072xx
I am using STM32L072xx module and I would like to use ADC4, ADC5 and ADC 17 (Vrefint) at the same time. But I want to use ADC4 with DMA of buffer size 500 or more. It is not necessary to store ADC5 & ADC17 in DMA.
Can I use DMA only for ADC 4 and dump 500 samples and use the following API calls for ADC5 and ADC17?
HAL_ADC_Start( &hadc);
/* Wait for the end of conversion */
HAL_ADC_PollForConversion( &hadc, HAL_MAX_DELAY );
/* Get the converted value of regular channel */
adcData = HAL_ADC_GetValue ( &hadc);
Is this the right way of configuring multiple ADC channels?
