void delay_Nms(int n)
{
int k = 0;
for(k = n;k > 0;k--)
SysCtlDelay(SysCtlClockGet() / 3000);
}
void InitADC()
{
// ADCSequenceDisable(ADC0_BASE,3);delay_Nms(1);
// Enable the second sample sequencer to capture the value of channel 3 when
// the processor trigger occurs.
ADCSequenceConfigure(ADC1_BASE, 3, ADC_TRIGGER_PROCESSOR, 0);
ADCSequenceStepConfigure(ADC1_BASE, 3, 0, ADC_CTL_CH0 | ADC_CTL_IE | ADC_CTL_END);
ADCSequenceEnable(ADC1_BASE,3);
//Set reference voltage
ADCReferenceSet(ADC1_BASE, ADC_REF_INT);delay_Nms(1);