Skip to content
Permalink
Browse files

drivers: adc: Enable ADC on STM32WB

remove legacy define of common ADC instance

Signed-off-by: Rick Conrey <rick.conrey@witiproducts.com>
  • Loading branch information...
Rick Conrey authored and galak committed Jul 4, 2019
1 parent aed522d commit b8b8d46daab9dd6a8b120bb87c88d82b937cec8f
Showing with 2 additions and 1 deletion.
  1. +2 −1 drivers/adc/adc_stm32.c
@@ -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) || \

0 comments on commit b8b8d46

Please sign in to comment.
You can’t perform that action at this time.