ADC LL drivers for L4
MX generated ADC drivers like this:
/** Configure Regular Channel
*/
LL_ADC_REG_SetSequencerRanks(ADC1, LL_ADC_REG_RANK_1, LL_ADC_PATH_INTERNAL_VREFINT);
LL_ADC_SetChannelSamplingTime(ADC1, LL_ADC_PATH_INTERNAL_VREFINT, LL_ADC_SAMPLINGTIME_247CYCLES_5);
LL_ADC_SetChannelSingleDiff(ADC1, LL_ADC_PATH_INTERNAL_VREFINT, LL_ADC_SINGLE_ENDED);it uses macro LL_ADC_PATH_INTERNAL_VREFINT, not LL_ADC_CHANNEL_VREFINT. As the results, the internal channels are not ADC'ed right, TS is 200+ degree, VREF is always 3.300V and VBAT is 3.6xxV. It happened on L4 series, not WB55 (where the macro is LL_ADC_CHANNEL_VREFINT). -wq
