drivers: adc: stm32h7 adc driver using LL function

Change the access to the PCSEL register by using the LL function
because on the STM32H7xx soc, some devices have no PCEL register
especially on ADC3 of the stm32H723.
The LL function manages this difference.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2021-09-17 11:50:51 +02:00 committed by Christopher Friedt
commit 41bfec7c52

View file

@ -384,9 +384,8 @@ static int start_read(const struct device *dev,
/*
* Each channel in the sequence must be previously enabled in PCSEL.
* This register controls the analog switch integrated in the IO level.
* NOTE: There is no LL API to control this register yet.
*/
adc->PCSEL |= channels & ADC_PCSEL_PCSEL_Msk;
LL_ADC_SetChannelPreSelection(adc, channel);
#endif
#if defined(CONFIG_SOC_SERIES_STM32F0X) || \