projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0642bc8
)
Switch to the dedicated ADC clock
easymotor-hacks
author
Keith Packard
<keithp@keithp.com>
Tue, 13 Apr 2021 07:21:06 +0000
(
00:21
-0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 13 Apr 2021 07:21:06 +0000
(
00:21
-0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/stmf0/ao_adc_stm.c
patch
|
blob
|
history
diff --git
a/src/stmf0/ao_adc_stm.c
b/src/stmf0/ao_adc_stm.c
index b276c4876826a1ff744543de78b17eaed18d3628..fe316d0fb7c0c6c061504e22e84b05f80be3daff 100644
(file)
--- a/
src/stmf0/ao_adc_stm.c
+++ b/
src/stmf0/ao_adc_stm.c
@@
-285,7
+285,7
@@
ao_adc_init(void)
(1 << STM_ADC_CFGR1_DMAEN)); /* enable DMA */
/* Set the clock */
- stm_adc.cfgr2 = STM_ADC_CFGR2_CKMODE_
PCLK_4
<< 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_239_5 << STM_ADC_SMPR_SMP;