Enabling Same Interrupt Number on Separate Ports [STM32H7]
I understand that any external interrupt on PA13, PB13, PC13, PD14 .. or PI15 will all execute the same ISR:
EXTI15_10_IRQHandler(void)
{
HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_13);
}
Which calls HAL_GPIO_EXTI_IRQHandler before finally calling the user function HAL_GPIO_EXTI_Callback.
My question is, even though the chip can't separate PD13 and PE13, what issue is there with enabling PD13 & PE13 interrupts (one active high, one active low) and then in the user HAL_GPIO_EXTI_Callback checking the state of the input pins, in order to distinguish which of the 2 interrupts occurred?
(STM32 Cube won't allow both pins to be assigned a mode of EXTIO interrupt, so would what would be the issue in manually overwrite the generated code or is some other underlying reason why this cannot be done)