You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AdcHandle.Init.LowPowerAutoPowerOff=DISABLE; /* ADC automatically powers-off after a conversion and automatically wakes-up when a new conversion is triggered */
552
554
AdcHandle.Init.Overrun=ADC_OVR_DATA_OVERWRITTEN; /* DR register is overwritten with the last conversion result in case of overrun */
555
+
#ifdefSTM32F0xx
553
556
AdcHandle.Init.SamplingTimeCommon=SAMPLINGTIME;
557
+
#else// STM32L0
558
+
//LowPowerFrequencyMode to enable if clk freq < 2.8Mhz
Copy file name to clipboardExpand all lines: cores/arduino/stm32/clock.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -136,7 +136,7 @@ void SysTick_Handler(void)
136
136
voiddelayInsideIT(uint32_tdelay_us)
137
137
{
138
138
uint32_tnb_loop;
139
-
#ifdefSTM32F0xx
139
+
#if defined (STM32F0xx) || defined (STM32L0xx)
140
140
nb_loop= (((HAL_RCC_GetHCLKFreq() / 1000000)/5)*delay_us)+1; /* uS (divide by 4 because each loop take about 4 cycles including nop +1 is here to avoid delay of 0 */
0 commit comments