modm: ADC Interrupts Vector is wrong on STM32F103

This block from modm/src/modm/platform/adc/stm32/adc_interrupts.cpp.in is wrong on STM32F103.

extern "C" void
ADC_IRQHandler(void)
{

The real name of this handler is

extern "C" void
ADC1_2_IRQHandler(void)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22 (22 by maintainers)

Most upvoted comments

Offtopic:

The way the interrupts are currently implemented is that the interrupt vector table entries are weakly aliased to Undefined_Handler, which raises an assertion if the IRQ is enabled, but no vector has been declared for it.

I quite like this feature. We were able to find the described bug using UndefinedHandlers.