Hi Alice,
I understand what you are trying to say and that's how I started the code. However, what I found was that, if I have two pins on the same port that are to be used for interrupts, all interrupts came into the same ISR and that the GPIO_DRV_PinIntEnable() routine enables for all pins on the port. That made the situation difficult as there are times when I wanted to ignore any activity on some of the pins. Essentially, I wanted one pin active or another. My solution was to define the pin as an input, but with the interrupt property set to kPortIntDisabled. Then when I want to handle input from that port I used:
PORT_HAL_SetPinIntMode(RTC_Port, GPIO_EXTRACT_PIN(RTC_Pin), kPortIntFallingEdge);
routine. It's sort of a hack as all other manipulation with this pin is done with the GPIO or GAL routines. But this works for me.
Thanks