/* Get the Rising Latched PWM counter of the PWM module. 
The  */
unsigned long PWMCAPRisingCounterGet(unsigned long ulBase, unsigned long ulChannel)
/* Get the Rising Latched PWM counter of the PWM module. 
The  */
unsigned long PWMCAPRisingCounterGet(unsigned long ulBase, unsigned long ulChannel)
{
    unsigned long ulChannelTemp;
    ulChannelTemp = (ulBase == PWMA_BASE) ? ulChannel : (ulChannel - 4);
    xASSERT(ulBase == PWMA_BASE);
    xASSERT(((ulChannelTemp >= 0) || (ulChannelTemp <= 3)));
    return xHWREG(ulBase + PWM_CRLR0 + ulChannelTemp * 8);
}