/* Check WDT status flag. This function checks whether special flag is set or not.  */
xtBoolean WDTStatusFlagCheck(unsigned long ulFlags)
/* Check WDT status flag. This function checks whether special flag is set or not.  */
xtBoolean WDTStatusFlagCheck(unsigned long ulFlags)
{
    xASSERT((ulFlags  == WDT_FLAG_TIMEOUT) ||
            (ulFlags  == WDT_FLAG_INT    ) ||
            (ulFlags  == (WDT_FLAG_TIMEOUT |  WDT_FLAG_INT))
           );
    if( xHWREG(WDT_BASE + WDT_MOD) & ulFlags )
    {
        return (xtrue);
    }
    else
    {
        return (xfalse);
    }
}