/* Configure ADC convert array. This function is used to fill ADC convert array, so you can use it to support ADC burst mode.  */
void xADCStepConfigure(unsigned long ulBase, unsigned long ulStep, unsigned long ulConfig)
/* Configure ADC convert array. This function is used to fill ADC convert array, so you can use it to support ADC burst mode.  */
void xADCStepConfigure(unsigned long ulBase, unsigned long ulStep, unsigned long ulConfig)
{
    xASSERT(ulBase == xADC0_BASE);
    xASSERT(ulStep <= 6);
    xASSERT( (ulConfig == xADC_CTL_CH0) ||
             (ulConfig == xADC_CTL_CH1) ||
             (ulConfig == xADC_CTL_CH2) ||
             (ulConfig == xADC_CTL_CH3) ||
             (ulConfig == xADC_CTL_CH4) ||
             (ulConfig == xADC_CTL_CH5) ||
             (ulConfig == xADC_CTL_CH6) );
    _ADC_Channels |= ulConfig;
    xHWREG(ulBase + AD_CR) |= ulConfig;
}