SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE);
SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0);
GPIOPinTypeADC(GPIO_PORTE_BASE, GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5);
ADCSequenceConfigure(ADC0_BASE, 2, ADC_TRIGGER_PROCESSOR, 0);
ADCSequenceStepConfigure(ADC0_BASE, 2, 0, ADC_CTL_CH1);//led 1
ADCSequenceStepConfigure(ADC0_BASE, 2, 1, ADC_CTL_CH0);//2
ADCSequenceStepConfigure(ADC0_BASE, 2, 2, ADC_CTL_CH9);//3
ADCSequenceStepConfigure(ADC0_BASE, 2, 3, ADC_CTL_END | ADC_CTL_CH8 | ADC_CTL_IE);//4
ADCSequenceEnable(ADC0_BASE, 2);//
ADCIntRegister(ADC0_BASE, 2, &ADCIsr);
ADCIntEnable(ADC0_BASE, 2);