#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include "adc.h"

#ifdef _ADC_10B_V3

/*********************************************************************
* Function Name     : BusyADC10
* Description       : This function returns the ADC conversion status.
* Parameters        : None
* Return Value      : DONE bit status
*********************************************************************/

char BusyADC10(void)
{
    return !(AD1CON1bits.DONE);	/* returns the DONE bit status */
}

#else
#warning "Does not build on this target"
#endif
