/* Determines whether the AD converter is busy or not. */
xtBoolean ADCBusy(unsigned long ulBase)
/* Determines whether the AD converter is busy or not. */
xtBoolean ADCBusy(unsigned long ulBase)
{
    xASSERT(ulBase == ADC0_BASE);
    return ((xHWREG(ulBase + ADC_STATUS0) & ADC_STATUS0_BUSY) ? xtrue : xfalse);
}