stm32/adc: Optimize sampling time for G4, H5, L4 and WB MCUs.

Signed-off-by: Rene Straub <rene@see5.ch>
This commit is contained in:
Rene Straub 2023-08-05 14:23:29 +02:00 committed by Damien George
parent 8f9bba0a1a
commit 64d24fccd6
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ STATIC void adc_config_channel(ADC_HandleTypeDef *adc_handle, uint32_t channel)
if (__HAL_ADC_IS_CHANNEL_INTERNAL(channel)) { if (__HAL_ADC_IS_CHANNEL_INTERNAL(channel)) {
sConfig.SamplingTime = ADC_SAMPLETIME_247CYCLES_5; sConfig.SamplingTime = ADC_SAMPLETIME_247CYCLES_5;
} else { } else {
sConfig.SamplingTime = ADC_SAMPLETIME_12CYCLES_5; sConfig.SamplingTime = ADC_SAMPLETIME_6CYCLES_5;
} }
sConfig.SingleDiff = ADC_SINGLE_ENDED; sConfig.SingleDiff = ADC_SINGLE_ENDED;
sConfig.OffsetNumber = ADC_OFFSET_NONE; sConfig.OffsetNumber = ADC_OFFSET_NONE;