@@ -909,8 +909,8 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
909
909
#endif
910
910
AdcHandle.Init .DiscontinuousConvMode = DISABLE; /* Parameter discarded because sequencer is disabled */
911
911
#if !defined(STM32C0xx) && !defined(STM32F0xx) && !defined(STM32G0xx) && \
912
- !defined (STM32L0xx) && !defined (STM32WBAxx ) && !defined (STM32WLxx ) && \
913
- !defined (ADC_SUPPORT_2_5_MSPS)
912
+ !defined (STM32L0xx) && !defined (STM32U0xx ) && !defined (STM32WBAxx ) && \
913
+ !defined (STM32WLxx) && ! defined ( ADC_SUPPORT_2_5_MSPS)
914
914
AdcHandle.Init .NbrOfDiscConversion = 0 ; /* Parameter discarded because sequencer is disabled */
915
915
#endif
916
916
AdcHandle.Init .ExternalTrigConv = ADC_SOFTWARE_START; /* Software start to trig the 1st conversion manually, without external event */
@@ -934,7 +934,7 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
934
934
#if defined(STM32F0xx)
935
935
AdcHandle.Init .SamplingTimeCommon = samplingTime;
936
936
#endif
937
- #if defined(STM32C0xx) || defined(STM32G0xx) || defined(STM32U5xx) || \
937
+ #if defined(STM32C0xx) || defined(STM32G0xx) || defined(STM32U0xx) || defined( STM32U5xx) || \
938
938
defined (STM32WBAxx) || defined (STM32WLxx) || defined (ADC_SUPPORT_2_5_MSPS)
939
939
AdcHandle.Init .SamplingTimeCommon1 = samplingTime; /* Set sampling time common to a group of channels. */
940
940
AdcHandle.Init .SamplingTimeCommon2 = samplingTime; /* Set sampling time common to a group of channels, second common setting possible.*/
@@ -999,8 +999,8 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
999
999
#endif
1000
1000
#if !defined(STM32C0xx) && !defined(STM32F0xx) && !defined(STM32F1xx) && \
1001
1001
!defined (STM32F2xx) && !defined (STM32G0xx) && !defined (STM32L0xx) && \
1002
- !defined (STM32L1xx) && !defined (STM32WBAxx ) && !defined (STM32WBxx ) && \
1003
- !defined (STM32WLxx) && !defined (ADC1_V2_5)
1002
+ !defined (STM32L1xx) && !defined (STM32U0xx ) && !defined (STM32WBAxx ) && \
1003
+ !defined (STM32WBxx) && ! defined ( STM32WLxx) && !defined (ADC1_V2_5)
1004
1004
AdcChannelConf.Offset = 0 ; /* Parameter discarded because offset correction is disabled */
1005
1005
#endif
1006
1006
#if defined (STM32H7xx) || defined(STM32MP1xx)
0 commit comments