We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbf50f7 commit 3299a73Copy full SHA for 3299a73
cores/arduino/stm32/analog.c
@@ -604,9 +604,13 @@ uint16_t adc_read_value(PinName pin)
604
return 0;
605
}
606
607
-#if defined (STM32F3xx) || defined (STM32L4xx)
+#if defined (STM32F0xx) || defined (STM32F3xx) || defined (STM32L4xx)
608
/*##-2.1- Calibrate ADC then Start the conversion process ####################*/
609
+#if defined (STM32F0xx)
610
+ if (HAL_ADCEx_Calibration_Start(&AdcHandle) != HAL_OK)
611
+#else
612
if (HAL_ADCEx_Calibration_Start(&AdcHandle, ADC_SINGLE_ENDED) != HAL_OK)
613
+#endif
614
{
615
/* ADC Calibration Error */
616
0 commit comments