Too many ADC interrupt calls added by CubeMX
Hi, I've got some code that uses both ADC1 and ADC3 that I've generated with STM32CubeMX. For both ADCs I want to use interrupts. With this configuration however the CubeMX auto-generated code adds 2 separate calls to the same HAL interrupt handler, one for each ADC. How can I differentiate which ADC interrupt has actually triggered? And is there a way to get STM32CubeMX to not add multiple calls to the same function? This functionality that it's created if left in could definitely make the code misbehave. I noticed a similar thing with the auto-generated code for handling GPIO external interrupts on lines 5 to 15: if you have interrupts enabled for GPIOs on pins 5, 6 and 7, the interrupt service function will call the HAL interrupt handler 3 times, once for each GPIO even if only one interrupt has occurred.
Thanks,
Doug Burrell