/* Use this function to detect that the ADC is finished sampling data before putting the device into deep sleep. Before using this function, it is highly recommended that the event trigger is changed to  */
bool ADCBusy(uint32_t ui32Base)
/* Use this function to detect that the ADC is finished sampling data before putting the device into deep sleep. Before using this function, it is highly recommended that the event trigger is changed to  */
bool ADCBusy(uint32_t ui32Base)
{
    ASSERT((ui32Base == ADC0_BASE) || (ui32Base == ADC1_BASE));
    return((HWREG(ui32Base + ADC_O_ACTSS) & ADC_ACTSS_BUSY) ? true : false);
}