File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments