/* Enables and configures the edge detection for the wakeup pin.  */
void SysCtlWakeupPinConfig(xtBoolean bEnable, unsigned long ulPinIndex, unsigned long ulEdge)
/* Enables and configures the edge detection for the wakeup pin.  */
void SysCtlWakeupPinConfig(xtBoolean bEnable, unsigned long ulPinIndex, unsigned long ulEdge)
{
    xASSERT((ulPinIndex >= 0 && ulPinIndex <= 15));
    xASSERT((ulEdge == SYSCTL_WAKEUP_PIN_DIS) ||
            (ulEdge == SYSCTL_WAKEUP_PIN_ANY) ||
            (ulEdge == SYSCTL_WAKEUP_PIN_RISING) ||
            (ulEdge == SYSCTL_WAKEUP_PIN_FALLING));
    if(bEnable)
    {
        xHWREGB(LLWU_PE1 + ulPinIndex/4) &= ~(LLWU_PE1_WUPE0_M << ((ulPinIndex%4)*2));
        xHWREGB(LLWU_PE1 + ulPinIndex/4) |= ulEdge << ((ulPinIndex%4)*2);
    }
    else
    {
        xHWREGB(LLWU_PE1 + ulPinIndex/4) &= ~(LLWU_PE1_WUPE0_M << ((ulPinIndex%4)*2));
    }
}