Skip to content

Commit 6a5bf70

Browse files
committed
core(analog): add STM32U5xx support
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 5e7fca7 commit 6a5bf70

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libraries/SrcWrapper/src/stm32/analog.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,9 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
861861
#endif
862862
#if !defined(STM32F1xx) && !defined(STM32F2xx) && !defined(STM32F3xx) && \
863863
!defined(STM32F4xx) && !defined(STM32F7xx) && !defined(STM32G4xx) && \
864-
!defined(STM32H7xx) && !defined(STM32L4xx) && !defined(STM32L5xx) && \
865-
!defined(STM32MP1xx) && !defined(STM32WBxx) || defined(ADC_SUPPORT_2_5_MSPS)
864+
!defined(STM32H5xx) && !defined(STM32H7xx) && !defined(STM32L4xx) && \
865+
!defined(STM32L5xx) && !defined(STM32MP1xx) && !defined(STM32WBxx) || \
866+
defined(ADC_SUPPORT_2_5_MSPS)
866867
AdcHandle.Init.LowPowerAutoPowerOff = DISABLE; /* ADC automatically powers-off after a conversion and automatically wakes-up when a new conversion is triggered */
867868
#endif
868869
#ifdef ADC_CHANNELS_BANK_B
@@ -939,8 +940,8 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
939940

940941
AdcChannelConf.Channel = channel; /* Specifies the channel to configure into ADC */
941942

942-
#if defined(STM32G4xx) || defined(STM32L4xx) || defined(STM32L5xx) || \
943-
defined(STM32WBxx)
943+
#if defined(STM32G4xx) || defined(STM32H5xx) || defined(STM32L4xx) || \
944+
defined(STM32L5xx) || defined(STM32WBxx)
944945
if (!IS_ADC_CHANNEL(&AdcHandle, AdcChannelConf.Channel)) {
945946
#else
946947
if (!IS_ADC_CHANNEL(AdcChannelConf.Channel)) {

0 commit comments

Comments
 (0)