2MHz setup:
ADCSequenceStepConfigure(ADC1_BASE, 0, 0, ainPort | ADC_CTL_END | ADC_CTL_IE);ADCSequenceEnable(ADC1_BASE, 0); // enable ADC sequencerADCIntClear(ADC1_BASE, 0);ADCSequenceConfigure(ADC1_BASE, 0, ADC_TRIGGER_PROCESSOR, 0);ADCProcessorTrigger(ADC1_BASE, 0);while (!ADCIntStatus(ADC1_BASE, 0, false)) { }ADCSequenceDataGet(ADC1_BASE, 0, &adcVoltage);return adcVoltage;
but this hangs up in the while loop.