The program is forever in this loop [while(!ADCIntStatus(ADC0_BASE, 0, false)))]. The ADC_0 SS0 is not generating an interrupt even though it is enabled.
int main()
{
uint32_t ui32Value;
SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0);
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_ADC0))
{
}
ADCSequenceDisable(ADC0_BASE, 0);
ADCSequenceConfigure(ADC0_BASE, 0, ADC_TRIGGER_PROCESSOR, 0);
ADCSequenceStepConfigure(ADC0_BASE, 0, 0, ADC_CTL_IE | ADC_CTL_END | ADC_CTL_TS);
ADCSequenceEnable(ADC0_BASE, 0);
while (1)
{
ADCProcessorTrigger(ADC0_BASE, 0);
while(!ADCIntStatus(ADC0_BASE, 0, false))
{
}
ADCSequenceDataGet(ADC0_BASE, 0, &ui32Value);
}
}
Any idea where I have gone wrong?
Thanks,
Sagar