There appears to be an error in ADCSequenceConfigure() in the v2.1.2.111 with regard to the setting of ADCTSSEL which encodes the PWM Generator and Module with which to trigger the ADC. You can demonstrate the error by setting a PWM trigger for PWM 1, Gen 2--the function will erroneously set PWM 1 and Gen 1. The existing code uses the PWM module and ADC Sequence rather than the PWM Generator:
ui32SequenceNum *= 4;
...
//
// Set the source PWM module for this sequence's PWM triggers.
//
ui32SequenceNum *= 2;
HWREG(ui32Base + ADC_O_TSSEL) = ((HWREG(ui32Base + ADC_O_TSSEL) &
~(0x30 << ui32SequenceNum)) |
((ui32Trigger & 0x30) <<
ui32SequenceNum));
The code below works correctly:
uint32_t ui32Gen;
...
//
// Set the source PWM module for this sequence's PWM triggers.
//
ui32Gen = ui32Trigger & 0x0f;
if(ui32Gen >= ADC_TRIGGER_PWM0 && ui32Gen < ADC_TRIGGER_PWM3)
{
// Set the shift for the module and generator
ui32Gen = (ui32Gen - ADC_TRIGGER_PWM0) * 8;
HWREG(ADC0_BASE + ADC_O_TSSEL) = ((HWREG(ADC0_BASE + ADC_O_TSSEL) &
~(0x30 << ui32Gen)) |
((ui32Trigger & 0x30) << ui32Gen));
}