summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/stm32/adc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/chip/stm32/adc.c b/chip/stm32/adc.c
index c91a5148cb..835f700e23 100644
--- a/chip/stm32/adc.c
+++ b/chip/stm32/adc.c
@@ -169,11 +169,11 @@ static void adc_init(void)
STM32_ADC_CR2 &= ~(1 << 11);
/*
- * Set sample time of all channels to 1.5 cycles.
- * Conversion takes 1.75 us.
+ * Set sample time of all channels to 7.5 cycles.
+ * Conversion takes 8.75 us.
*/
- STM32_ADC_SMPR1 = 0;
- STM32_ADC_SMPR2 = 0;
+ STM32_ADC_SMPR1 = 0x00249249;
+ STM32_ADC_SMPR2 = 0x09249249;
}
DECLARE_HOOK(HOOK_INIT, adc_init, HOOK_PRIO_DEFAULT);