drivers: adc: Enable ADC on STM32WB
remove legacy define of common ADC instance Signed-off-by: Rick Conrey <rick.conrey@witiproducts.com>
This commit is contained in:
parent
aed522da76
commit
b8b8d46daa
1 changed files with 2 additions and 1 deletions
|
@ -547,7 +547,8 @@ static int adc_stm32_init(struct device *dev)
|
|||
* These two series STM32 has one internal voltage reference source
|
||||
* to be enabled.
|
||||
*/
|
||||
LL_ADC_SetCommonPathInternalCh(ADC, LL_ADC_PATH_INTERNAL_VREFINT);
|
||||
LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(adc),
|
||||
LL_ADC_PATH_INTERNAL_VREFINT);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SOC_SERIES_STM32F0X) || \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue