STM32H5xxLL_ADC.H bug in STM32Cube FW_H5 V1.6.0
Post edited by ST moderator to be compliant with the ST community rules especially for sharing a code.
The latest Cube H5 package (STM32Cube FW_H5 V1.6.0) has broken the use of ADC2_INP0 with the following changes to LL_ADC_EnableChannel0_GPIO and LL_ADC_DisableChannel0_GPIO in STM32H5xxLL_ADC.H.
Previous,
__STATIC_INLINE void LL_ADC_EnableChannel0_GPIO(const ADC_TypeDef *ADCx)
{
/* Prevent unused argument(s) compilation warning */
(void)(ADCx);
SET_BIT(ADC1->OR, ADC_OR_OP0);
}Current,
__STATIC_INLINE void LL_ADC_EnableChannel0_GPIO(ADC_TypeDef *ADCx)
{
SET_BIT(ADCx->OR, ADC_OR_OP0);
}__STATIC_INLINE void LL_ADC_DisableChannel0_GPIO(const ADC_TypeDef *ADCx)
{
/* Prevent unused argument(s) compilation warning */
(void)(ADCx);
CLEAR_BIT(ADC1->OR, ADC_OR_OP0);
}__STATIC_INLINE void LL_ADC_DisableChannel0_GPIO(ADC_TypeDef *ADCx)
{
CLEAR_BIT(ADCx->OR, ADC_OR_OP0);
}