git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7425 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
26cd37a0b1
commit
6c2c5f6526
|
@ -189,12 +189,12 @@ void adc_lld_start(ADCDriver *adcp) {
|
|||
rccEnableADC1(FALSE);
|
||||
#if STM32_ADCSW == STM32_ADCSW_HSI14
|
||||
/* Clock from HSI14, no need for jitter removal.*/
|
||||
ADC1->CFGR2 = 0x00001000;
|
||||
ADC1->CFGR2 = 0;
|
||||
#else
|
||||
#if STM32_ADCPRE == STM32_ADCPRE_DIV2
|
||||
ADC1->CFGR2 = 0x00001000 | ADC_CFGR2_JITOFFDIV2;
|
||||
ADC1->CFGR2 = ADC_CFGR2_JITOFFDIV2;
|
||||
#else
|
||||
ADC1->CFGR2 = 0x00001000 | ADC_CFGR2_JITOFFDIV4;
|
||||
ADC1->CFGR2 = ADC_CFGR2_JITOFFDIV4;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue