/* Enables and configures the edge detection for the wakeup pin.  */
void SysCtlWakeupFilterConfig(unsigned long ulFilterIndex, unsigned long ulPinIndex, unsigned long ulEdge)
/* Enables and configures the edge detection for the wakeup pin.  */
void SysCtlWakeupFilterConfig(unsigned long ulFilterIndex, unsigned long ulPinIndex, unsigned long ulEdge)
{
    xASSERT((ulFilterIndex >= 1 && ulFilterIndex <= 2));
    xASSERT((ulPinIndex >= 0 && ulPinIndex <= 15));
    xASSERT((ulEdge == SYSCTL_WAKEUP_FILTER_DIS) ||
            (ulEdge == SYSCTL_WAKEUP_FILTER_ANY) ||
            (ulEdge == SYSCTL_WAKEUP_FILTER_RISING) ||
            (ulEdge == SYSCTL_WAKEUP_FILTER_FALLING));
    xHWREGB(LLWU_FILT1+ulFilterIndex/2) &= ~LLWU_FILT1_FILTE_M;
    xHWREGB(LLWU_FILT1+ulFilterIndex/2) |= ulEdge;
    xHWREGB(LLWU_FILT1+ulFilterIndex/2) &= ~LLWU_FILT1_FILTSEL_M;
    xHWREGB(LLWU_FILT1+ulFilterIndex/2) |= ulPinIndex;
}