/* Set the interrupt type and Enable interrupt for the specified pin(s). This function sets up the various interrupt trigger mechanisms for the specified pin(s) on the selected GPIO port.  */
void xGPIOPinIntEnable(unsigned long ulPort, unsigned long ulPins, unsigned long ulIntType)
/* Set the interrupt type and Enable interrupt for the specified pin(s). This function sets up the various interrupt trigger mechanisms for the specified pin(s) on the selected GPIO port.  */
void xGPIOPinIntEnable(unsigned long ulPort, unsigned long ulPins, unsigned long ulIntType)
{
    unsigned long i = 0;
    for(i = 0; i < 32; i++)
    {
        if(ulPins & (0x01 << i))
        {
            GPIOPinIntCfg(ulPort, (0x01 << i), ulIntType);
            GPIOPinIntEnable(ulPort, (0x01 << i));
        }
    }
}