/* ADC1 and ADC2 Interrupt Handler. 
If users want to user the ADC1 Callback feature, Users should promise that the ADC0 Handle in the vector table is ADCIntHandler. */
void ADC12IntHandler(void)
/* ADC1 and ADC2 Interrupt Handler. 
If users want to user the ADC1 Callback feature, Users should promise that the ADC0 Handle in the vector table is ADCIntHandler. */
void ADC12IntHandler(void)
{
    unsigned long ulIntFlags = 0;
    ulIntFlags = xHWREG(ADC1_BASE + ADC_SR);
    if(ulIntFlags&(ADC_INT_END_CONVERSION|ADC_INT_AWD|ADC_INT_END_JEOC))
    {
    	xHWREG(ADC1_BASE + ADC_SR) = ~ulIntFlags;
    	if(g_pfnADCHandlerCallbacks[0])
    	{
    	    g_pfnADCHandlerCallbacks[0](0, ulIntFlags, 0, 0);
    	}
    }
    ulIntFlags = xHWREG(ADC2_BASE + ADC_SR);
    if(ulIntFlags&(ADC_INT_END_CONVERSION|ADC_INT_AWD|ADC_INT_END_JEOC))
    {
    	xHWREG(ADC1_BASE + ADC_SR) = ~ulIntFlags;
    	if(g_pfnADCHandlerCallbacks[1])
    	{
    	    g_pfnADCHandlerCallbacks[1](0, ulIntFlags, 0, 0);
    	}
    }
}