Skip to content

Commit

Permalink
drivers: adc: Enable ADC on STM32WB
Browse files Browse the repository at this point in the history
remove legacy define of common ADC instance

Signed-off-by: Rick Conrey <rick.conrey@witiproducts.com>
  • Loading branch information
witi-manufacturing authored and galak committed Jul 31, 2019
1 parent aed522d commit b8b8d46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/adc/adc_stm32.c
Expand Up @@ -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) || \
Expand Down

0 comments on commit b8b8d46

Please sign in to comment.