LL_ADC_ConfigOverSamplingRatioShift is not using correct ratio mask for ADC3 on STM32H73x CubeMX v6.3.0
Currently there is only:
__STATIC_INLINE void LL_ADC_ConfigOverSamplingRatioShift(ADC_TypeDef *ADCx, uint32_t Ratio, uint32_t Shift)
{
MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_OVSS | ADC_CFGR2_OVSR), (Shift | (((Ratio - 1UL) << ADC_CFGR2_OVSR_Pos))));
}
which does not work for ADC3 on H73x
As workaround I added locally o function like this, which used the correct ADC3 mask for ratio:
static void ADC3_ConfigOverSamplingRatioShift( uint32_t ratio, uint32_t shift )
{
MODIFY_REG(ADC3->CFGR2, (ADC_CFGR2_OVSS | ADC3_CFGR2_OVSR), (shift | (((ratio - 1UL) << ADC3_CFGR2_OVSR_Pos))));
}
Is there another way in the LL libs, that I missed to find?
