STM32CubeIDE problem with callback function
Hi,
I have writen simple callback function for handle end of ADC convertion in main.c file.
In main.h is declared
extern void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc);
main.c
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
{
adc_Complete = 1;
}
After command Build All in Project menu is result:
../Core/Src/main.c:203:6: warning: 'HAL_ADC_ConvCpltCallback' defined but not used [-Wunused-function]
My callback function is not used for interrupt handling of course.
In the past I dindn't find any problem with callback in Keil system.
What I do need set in STM32CubeIDE to solve this problem?
Thank you for help.