/* Checks whether the specified interrupt has occurred or not.  */
uint8_t ADC_ReadIntFlag(ADC_INT_FLAG_T flag)
/* Checks whether the specified interrupt has occurred or not.  */
uint8_t ADC_ReadIntFlag(ADC_INT_FLAG_T flag)
{
    uint8_t intEnable;
    uint8_t intStatus;
    intEnable = (uint8_t)(ADC->INT& (uint32_t)flag);
    intStatus = (uint8_t)(ADC->STS & (uint32_t)(flag & 0xff));
    if (intEnable && intStatus)
    {
        return SET;
    }
    return RESET;
}