Simultaneous timer interrupts
I would like to determine MCU's behavior when two simultaneous events trigger interrupts on a single timer. For instance on TIM2, if both the output compare register and auto-reload register hold the same value and both corresponding interrupts are enabled, is a single interrupt generated or are interrupts generated for each event? In the STM32 HAL (stm32f1xx_hal_tim.c) a single ISR (void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)) is called for all interrupts generated by the timer events. The ISR essentially prioritizes interrupts through a sequence of if/else instructions. I think if two interrupts are generated, a callback for the high-priority would be generated while the other interrupt would be pending. Otherwise, only the higher priority interrupt would be recognized. I did RFTM but did not find the answer to this.
