/* whether the specified Timer flag has been set.  */
xtBoolean TimerFlagStatusGet(unsigned long ulBase, unsigned long ulFlag)
/* whether the specified Timer flag has been set.  */
xtBoolean TimerFlagStatusGet(unsigned long ulBase, unsigned long ulFlag)
{
    xASSERT((ulBase == TIMER1_BASE) || (ulBase == TIMER0_BASE));
    xASSERT((ulFlag == TIMER_FLAG_CH0CC) || (ulFlag == TIMER_FLAG_CH1CC) ||
            (ulFlag == TIMER_FLAG_CH2CC) || (ulFlag == TIMER_FLAG_CH3CC) ||
            (ulFlag == TIMER_FLAG_CH0OC) || (ulFlag == TIMER_FLAG_CH1OC) ||
            (ulFlag == TIMER_FLAG_CH2OC) || (ulFlag == TIMER_FLAG_CH3OC) ||
            (ulFlag == TIMER_FLAG_UEV1) || (ulFlag == TIMER_FLAG_TEV));
    if((xHWREG(ulBase + TIMER_INTSR) & ulFlag))
    {
        return xtrue;  
    }
    else
    {
        return xfalse;
    }
}