/* Init the ADC of the motor shield for current get.  */
void AMSMotorADCInit(void)
/* Init the ADC of the motor shield for current get.  */
void AMSMotorADCInit(void)
{
	unsigned long ulBufferIn[2] = {10,11};
    xSysCtlPeripheralClockSourceSet(xSYSCTL_ADC0_MAIN, 3);
    xSysCtlPeripheralEnable2(sADC_BASE);
    sA0PinTypeADC();
    sA1PinTypeADC();
    xADCEnable(sADC_BASE);
    ADCRegularConfigure(sADC_BASE, ADC_OP_SCAN, ADC_TRIGGER_PROCESSOR);
    ADCRegularConfigure(sADC_BASE, ADC_OP_CONTINUOUS, ADC_TRIGGER_PROCESSOR);
    ADCAutoInjectedEnable(sADC_BASE);
    ADCConverLenSet(sADC_BASE, 0, 2);
    ADCSequenceIndexSet(sADC_BASE, 0, ulBufferIn);
    xADCProcessorTrigger(sADC_BASE);
}