We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56ce558 commit 3cb9fa8Copy full SHA for 3cb9fa8
cores/arduino/stm32/analog.c
@@ -615,9 +615,9 @@ uint16_t adc_read_value(PinName pin)
615
return 0;
616
}
617
618
-#if defined (STM32F0xx) || defined (STM32F3xx) || defined (STM32L4xx)
+#if defined (STM32F0xx) || defined (STM32F1xx) || defined (STM32F3xx) || defined (STM32L4xx)
619
/*##-2.1- Calibrate ADC then Start the conversion process ####################*/
620
-#if defined (STM32F0xx)
+#if defined (STM32F0xx) || defined (STM32F1xx)
621
if (HAL_ADCEx_Calibration_Start(&AdcHandle) != HAL_OK)
622
#else
623
if (HAL_ADCEx_Calibration_Start(&AdcHandle, ADC_SINGLE_ENDED) != HAL_OK)
0 commit comments