From 6c2c5f652642fceb499428f2aa67ad0b21eff457 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 26 Oct 2014 10:33:59 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7425 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F0xx/adc_lld.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'os') diff --git a/os/hal/ports/STM32/STM32F0xx/adc_lld.c b/os/hal/ports/STM32/STM32F0xx/adc_lld.c index 753f4ac43..9f204ac1d 100644 --- a/os/hal/ports/STM32/STM32F0xx/adc_lld.c +++ b/os/hal/ports/STM32/STM32F0xx/adc_lld.c @@ -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 } -- cgit v1.2.3