aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32f1/adc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32f1/adc.c')
-rw-r--r--src/stm32f1/adc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stm32f1/adc.c b/src/stm32f1/adc.c
index 2fe4977e..8eda4f8f 100644
--- a/src/stm32f1/adc.c
+++ b/src/stm32f1/adc.c
@@ -75,7 +75,8 @@ gpio_adc_sample(struct gpio_adc g)
/* ADC not busy, start conversion */
if (!readb(&adc_busy)) {
LL_ADC_REG_SetSequencerRanks(ADC1, LL_ADC_REG_RANK_1, g.bit);
- LL_ADC_SetChannelSamplingTime(ADC1, g.bit, LL_ADC_SAMPLINGTIME_239CYCLES_5);
+ LL_ADC_SetChannelSamplingTime(ADC1, g.bit
+ , LL_ADC_SAMPLINGTIME_239CYCLES_5);
LL_ADC_REG_StartConversionSWStart(ADC1);
adc_busy = true;
adc_current_channel = g.bit;