summaryrefslogtreecommitdiff
path: root/src/stmf0/ao_adc_fast.c
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2018-02-12 16:38:57 -0700
committerBdale Garbee <bdale@gag.com>2018-02-12 16:38:57 -0700
commitee79a205e118ea8730a02cc327d8fb79cc5f74ff (patch)
treebe0b0c9fbccaa84acadb1d18688aae9b8db3e048 /src/stmf0/ao_adc_fast.c
parent365eee3ebfe73204033089b363687228f97e5d98 (diff)
parent78a90fc760b88ab66c5c238289afc38356e29d8a (diff)
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'src/stmf0/ao_adc_fast.c')
-rw-r--r--src/stmf0/ao_adc_fast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stmf0/ao_adc_fast.c b/src/stmf0/ao_adc_fast.c
index 5ce3a396..fbf4ad2e 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_ADCCLK << STM_ADC_CFGR2_CKMODE;
+ stm_adc.cfgr2 = STM_ADC_CFGR2_CKMODE_PCLK_2 << STM_ADC_CFGR2_CKMODE;
/* Shortest sample time */
stm_adc.smpr = STM_ADC_SMPR_SMP_1_5 << STM_ADC_SMPR_SMP;