In EXTI, how to know which port generates the interrupt?
Hi,
After reading the document I understand the interrupts are handled by pin#, and we set GPIOsel within EXTI_ConfigTypeDef.
My question is how do we determine which port generates the interrupt?
Suppose I use PA0 and PB0, and I only want to use one callback function for them.
void callback()
{
if(port == GPIOA)
{
do something
}
else if(port == GPIOB)
{
do other thing
}
}
Thank you
