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:
parent
a0bd3b09ab
commit
41bfec7c52
1 changed files with 1 additions and 2 deletions
|
@ -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) || \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue