@@ -891,8 +891,8 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
891
891
#endif
892
892
AdcHandle.Init .DiscontinuousConvMode = DISABLE; /* Parameter discarded because sequencer is disabled */
893
893
#if !defined(STM32C0xx) && !defined(STM32F0xx) && !defined(STM32G0xx) && \
894
- !defined (STM32L0xx) && !defined (STM32WBAxx ) && !defined (STM32WLxx ) && \
895
- !defined (ADC_SUPPORT_2_5_MSPS)
894
+ !defined (STM32L0xx) && !defined (STM32U0xx ) && !defined (STM32WBAxx ) && \
895
+ !defined (STM32WLxx) && ! defined ( ADC_SUPPORT_2_5_MSPS)
896
896
AdcHandle.Init .NbrOfDiscConversion = 0 ; /* Parameter discarded because sequencer is disabled */
897
897
#endif
898
898
AdcHandle.Init .ExternalTrigConv = ADC_SOFTWARE_START; /* Software start to trig the 1st conversion manually, without external event */
@@ -916,7 +916,7 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
916
916
#if defined(STM32F0xx)
917
917
AdcHandle.Init .SamplingTimeCommon = samplingTime;
918
918
#endif
919
- #if defined(STM32C0xx) || defined(STM32G0xx) || defined(STM32U5xx) || \
919
+ #if defined(STM32C0xx) || defined(STM32G0xx) || defined(STM32U0xx) || defined( STM32U5xx) || \
920
920
defined (STM32WBAxx) || defined (STM32WLxx) || defined (ADC_SUPPORT_2_5_MSPS)
921
921
AdcHandle.Init .SamplingTimeCommon1 = samplingTime; /* Set sampling time common to a group of channels. */
922
922
AdcHandle.Init .SamplingTimeCommon2 = samplingTime; /* Set sampling time common to a group of channels, second common setting possible.*/
@@ -981,8 +981,8 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
981
981
#endif
982
982
#if !defined(STM32C0xx) && !defined(STM32F0xx) && !defined(STM32F1xx) && \
983
983
!defined (STM32F2xx) && !defined (STM32G0xx) && !defined (STM32L0xx) && \
984
- !defined (STM32L1xx) && !defined (STM32WBAxx ) && !defined (STM32WBxx ) && \
985
- !defined (STM32WLxx) && !defined (ADC1_V2_5)
984
+ !defined (STM32L1xx) && !defined (STM32U0xx ) && !defined (STM32WBAxx ) && \
985
+ !defined (STM32WBxx) && ! defined ( STM32WLxx) && !defined (ADC1_V2_5)
986
986
AdcChannelConf.Offset = 0 ; /* Parameter discarded because offset correction is disabled */
987
987
#endif
988
988
#if defined (STM32H7xx) || defined(STM32MP1xx)
0 commit comments