Where can I find documentation on ADC_IRQHandler()?
I'm using both ADC's in continuous / interrupt mode on some micro's in the STM32F103 family and it's working properly and fills my needs nicely.
The core components which are commonly presented in the online tutorials are...
Calibration:
HAL_ADCEx_Calibration_Start(&hadc1);
HAL_ADCEx_Calibration_Start(&hadc2);Starting the ADC's in continuous interrupt mode
HAL_ADC_Start_IT(&hadc1);
HAL_ADC_Start_IT(&hadc2);The Callback routine
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
{
if( hadc->Instance == ADC1)
{
ADC1_Reading = HAL_ADC_GetValue(&hadc1);
}
else if( hadc->Instance == ADC2)
{
ADC2_Thermistor = HAL_ADC_GetValue(&hadc2);
}
}But the ADCs cannot operate in continuous interrupt mode without one critical component that is basically undocumented and almost none of the tutorials mention it.
ADC_IRQHandler()
I noted one post in this board that mentioned it and based on that I added ...
void ADC_IRQHandler()
{
HAL_ADC_IRQHandler(&hadc1);
HAL_ADC_IRQHandler(&hadc2);
}After adding that it started working but I'm unable to find any documentation on it nor how to use it properly.
I'm hoping someone here can direct me to documentation regarding it. The RM0008 Reference manual for the STM32F1x family has no mention of it.
Edit (after waclawek's response): And neither does the "HAL and lower layer drivers" manual.
