Skip to content

Commit fd40374

Browse files
committed
[ADC] Fix ADC_InitTypeDef member for STM32F37xx
Fixes #742 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 5d32e51 commit fd40374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/arduino/stm32/analog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ uint16_t adc_read_value(PinName pin)
822822
AdcHandle.Init.NbrOfDiscConversion = 0; /* Parameter discarded because sequencer is disabled */
823823
#endif
824824
AdcHandle.Init.ExternalTrigConv = ADC_SOFTWARE_START; /* Software start to trig the 1st conversion manually, without external event */
825-
#if !defined(STM32F1xx)
825+
#if !defined(STM32F1xx) && !defined(STM32F373xC) && !defined(STM32F378xx)
826826
AdcHandle.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; /* Parameter discarded because software trigger chosen */
827827
#endif
828828
#if !defined(STM32F1xx) && !defined(STM32H7xx) && \

0 commit comments

Comments
 (0)