/* Init the ADC with the corresponding configuration in the LPR5150AL_Configure gorup.  */
void LPR5150ALInit()
/* Init the ADC with the corresponding configuration in the LPR5150AL_Configure gorup.  */
void LPR5150ALInit()
{
    xSysCtlPeripheralClockSourceSet(xSYSCTL_ADC0_HCLK, 3);
    xSysCtlPeripheralEnable2(LPR5150AL_ADC_BASE);
    XAXIS_PIN_IN_CFG();
    YAXIS_PIN_IN_CFG();
    xADCEnable(LPR5150AL_ADC_BASE);
    xADCConfigure(LPR5150AL_ADC_BASE, xADC_MODE_SCAN_CONTINUOUS, ADC_TRIGGER_PROCESSOR);
    xADCStepConfigure(LPR5150AL_ADC_BASE, 0, xADC_CTL_CH2);
    xADCStepConfigure(LPR5150AL_ADC_BASE, 1, xADC_CTL_CH3);
    xADCProcessorTrigger(LPR5150AL_ADC_BASE);
}