/* Returns the current setting of the ADC reference. */
unsigned long ADCReferenceGet(unsigned long ulBase)
/* Returns the current setting of the ADC reference. */
unsigned long ADCReferenceGet(unsigned long ulBase)
{
    ASSERT((ulBase == ADC0_BASE) || (ulBase == ADC1_BASE));
    return(HWREG(ulBase + ADC_O_CTL) & ADC_CTL_VREF);
}