/* Set clear the Capture Latch Indicators option for the PWM timer.  */
xtBoolean PWMCAPClearLatchFlagOptionSelect(unsigned long ulBase, unsigned char ucOption)
/* Set clear the Capture Latch Indicators option for the PWM timer.  */
xtBoolean PWMCAPClearLatchFlagOptionSelect(unsigned long ulBase, unsigned char ucOption)
{
    xASSERT((ulBase == PWMA_BASE) || (ulBase == PWMB_BASE));
    xHWREG(ulBase + PWM_PBCR) = 0;
    if (xHWREG(ulBase + PWM_PBCR))
    {
        return xfalse;
    }
    else
    {
        xHWREG(ulBase + PWM_PBCR) = ucOption;
        return xtrue;
    }
}