/* Determine if the ADC sample sequence overflow occurred.  */
xtBoolean xADCOverflow(unsigned long ulBase)
/* Determine if the ADC sample sequence overflow occurred.  */
xtBoolean xADCOverflow(unsigned long ulBase)
{
    unsigned long ulStatus;
    xASSERT(ulBase == ADC_BASE);
    ulStatus = xHWREG(ulBase + ADC_SR);
    return ((ulStatus & ADC_SR_OVERRUN) ? xtrue : xfalse);
}