summaryrefslogtreecommitdiff
path: root/src/stmf0/ao_adc_fast.c
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2018-03-18 15:50:16 -0600
committerBdale Garbee <bdale@gag.com>2018-03-18 15:50:16 -0600
commit55b62bb5d6a9d6b484bcd0d802964d529dd5f9bb (patch)
tree1a93442d43fcad172879d76629d4ed47ce3d6575 /src/stmf0/ao_adc_fast.c
parent558d2c94fe8c49d0544a3e7bc5ba11b60c4faa1e (diff)
parent59e23c27c2a85d7d748223e444b24d19937afe47 (diff)
Merge branch 'branch-1.8' into debian
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;