X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fstmf0%2Fao_adc_fast.c;fp=src%2Fstmf0%2Fao_adc_fast.c;h=5ce3a396e5a0c538fc8f2f3a67e8b2e6afbcd515;hp=fbf4ad2e88527e2d5e8d88c0d47924e52ff81d95;hb=46b1234140c04dbfac22be0fdf80be96506b6948;hpb=48088d1d6a66c5d5271b52191367f07b09626b29 diff --git a/src/stmf0/ao_adc_fast.c b/src/stmf0/ao_adc_fast.c index fbf4ad2e..5ce3a396 100644 --- a/src/stmf0/ao_adc_fast.c +++ b/src/stmf0/ao_adc_fast.c @@ -154,7 +154,7 @@ ao_adc_init(void) #endif /* Set the clock */ - stm_adc.cfgr2 = STM_ADC_CFGR2_CKMODE_PCLK_2 << STM_ADC_CFGR2_CKMODE; + stm_adc.cfgr2 = STM_ADC_CFGR2_CKMODE_ADCCLK << STM_ADC_CFGR2_CKMODE; /* Shortest sample time */ stm_adc.smpr = STM_ADC_SMPR_SMP_1_5 << STM_ADC_SMPR_SMP;