/* Get GPIO port mask register of the specified GPIO pin(s).  */
long GPIOPortMaskGet(unsigned long ulPort)
/* Get GPIO port mask register of the specified GPIO pin(s).  */
long GPIOPortMaskGet(unsigned long ulPort)
{
    unsigned long ulPortBase;
	unsigned long ulPinMask;
    xASSERT(GPIOBaseValid(ulPort));
	ulPortBase = GPIOToPortGet(ulPort);
	ulPinMask = xHWREG(ulPortBase + PORT_GPCHR);
	ulPinMask = ulPinMask << 16;
	ulPinMask |= xHWREG(ulPortBase + PORT_GPCLR);  
    return ulPinMask;
}