hadc.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
I have try to set hadc.Init.EOCSelection as ADC_EOC_SINGLE_CONV and ADC_EOC_SEQ_CONV to take a look in debug mode using Keil 5.
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
unsigned char avg_num = 4;
Adc_raw[adc_id] = HAL_ADC_GetValue(hadc);
adc_id = 0;
Adc_Vref = 3300*Adc_raw/4095;
Whatever I choose the EOCSelection, the 2 if condition would be ingoing.
So could someone tell me what's the difference between ADC_EOC_SINGLE_CONV and ADC_EOC_SEQ_CONV?