/* Checks whether the specified CEC interrupt has occurred or not.  */
uint8_t CEC_ReadIntFlag(uint16_t flag)
/* Checks whether the specified CEC interrupt has occurred or not.  */
uint8_t CEC_ReadIntFlag(uint16_t flag)
{
    uint32_t intEnable;
    uint32_t intStatus;
    intEnable = (CEC->INTEN & flag);
    intStatus = (CEC->STS & flag);
    if((intStatus != (uint32_t)RESET) && intEnable)
    {
        return SET;
    }
    else
    {
        return RESET;
    }
}