Skip to content

Commit 0abd0bd

Browse files
committed
fix(U5): ensure ADC timing initialised
Complete the PR stm32duino#1766 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 82ccde0 commit 0abd0bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/SrcWrapper/src/stm32/analog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
898898
#if defined(STM32F0xx)
899899
AdcHandle.Init.SamplingTimeCommon = samplingTime;
900900
#endif
901-
#if defined(STM32G0xx) || defined(STM32WLxx)
901+
#if defined(STM32G0xx) || defined(STM32U5xx) || defined(STM32WLxx)
902902
AdcHandle.Init.SamplingTimeCommon1 = samplingTime; /* Set sampling time common to a group of channels. */
903903
AdcHandle.Init.SamplingTimeCommon2 = samplingTime; /* Set sampling time common to a group of channels, second common setting possible.*/
904904
#endif

0 commit comments

Comments
 (0)