Skip to content

Commit 88e139e

Browse files
committed
add ADC calibration for STM32L0xx
Signed-off-by: dhl <[email protected]>
1 parent 1a5cb4f commit 88e139e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/stm32/analog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ uint16_t adc_read_value(PinName pin)
614614
return 0;
615615
}
616616

617-
#if defined (STM32F0xx) || defined (STM32F1xx) || defined (STM32F3xx) || defined (STM32L4xx)
617+
#if defined (STM32F0xx) || defined (STM32F1xx) || defined (STM32F3xx) || defined (STM32L0xx) || defined (STM32L4xx)
618618
/*##-2.1- Calibrate ADC then Start the conversion process ####################*/
619619
#if defined (STM32F0xx) || defined (STM32F1xx)
620620
if (HAL_ADCEx_Calibration_Start(&AdcHandle) != HAL_OK)

0 commit comments

Comments
 (0)