Skip to content

Commit bf359f5

Browse files
committed
Revert "Revert back to 13.5 cycles ADC sample time"
This reverts commit 608bcb7.
1 parent 2cf0e6e commit bf359f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/setup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static void setup_systick(void)
291291
* side, right side, left front, right front.
292292
* - Power off the ADC to be sure that does not run during configuration.
293293
* - Enable scan mode with single conversion mode triggered by software.
294-
* - Configure the alignment (right) and the sample time (13.5 cycles of ADC
294+
* - Configure the alignment (right) and the sample time (28.5 cycles of ADC
295295
* clock).
296296
* - Set injected sequence with channel_sequence structure.
297297
* - Power on the ADC and wait for ADC starting up (at least 3 us).
@@ -317,7 +317,7 @@ static void setup_adc1(void)
317317
adc_set_single_conversion_mode(ADC1);
318318
adc_enable_external_trigger_injected(ADC1, ADC_CR2_JEXTSEL_JSWSTART);
319319
adc_set_right_aligned(ADC1);
320-
adc_set_sample_time_on_all_channels(ADC1, ADC_SMPR_SMP_13DOT5CYC);
320+
adc_set_sample_time_on_all_channels(ADC1, ADC_SMPR_SMP_28DOT5CYC);
321321
adc_set_injected_sequence(
322322
ADC1, sizeof(channel_sequence) / sizeof(channel_sequence[0]),
323323
channel_sequence);

0 commit comments

Comments
 (0)