From 3ffd11d77f4ca75bb0006c5c105e76170482a701 Mon Sep 17 00:00:00 2001 From: YourAPIExpert Date: Wed, 20 Jul 2022 04:56:16 +0800 Subject: [PATCH] Fix for ADC timing for NUCLEO-WL55JC (STM32WLxx) --- libraries/SrcWrapper/src/stm32/analog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SrcWrapper/src/stm32/analog.cpp b/libraries/SrcWrapper/src/stm32/analog.cpp index 479cfcd630..ae93ca6d49 100644 --- a/libraries/SrcWrapper/src/stm32/analog.cpp +++ b/libraries/SrcWrapper/src/stm32/analog.cpp @@ -898,7 +898,7 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution) #if defined(STM32F0xx) AdcHandle.Init.SamplingTimeCommon = samplingTime; #endif -#if defined(STM32G0xx) +#if defined(STM32G0xx) || defined(STM32WLxx) AdcHandle.Init.SamplingTimeCommon1 = samplingTime; /* Set sampling time common to a group of channels. */ AdcHandle.Init.SamplingTimeCommon2 = samplingTime; /* Set sampling time common to a group of channels, second common setting possible.*/ #endif