aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32F30x/adc_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32F30x/adc_lld.c')
-rw-r--r--os/hal/ports/STM32F30x/adc_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/STM32F30x/adc_lld.c b/os/hal/ports/STM32F30x/adc_lld.c
index 26fdcebf1..4be6b56a7 100644
--- a/os/hal/ports/STM32F30x/adc_lld.c
+++ b/os/hal/ports/STM32F30x/adc_lld.c
@@ -89,7 +89,7 @@ static void adc_lld_vreg_on(ADCDriver *adcp) {
#if STM32_ADC_DUAL_MODE
adcp->adcs->CR = ADC_CR_ADVREGEN_0;
#endif
- osalSysPolledDelayX(US2RTC(10));
+ osalSysPolledDelayX(US2RTC(STM32_HCLK, 10));
}
/**