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:
parent
8f9bba0a1a
commit
64d24fccd6
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue