projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34e65ca
)
Increase ADC sample time to max
author
Keith Packard
<keithp@keithp.com>
Tue, 13 Apr 2021 06:54:26 +0000
(23:54 -0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 13 Apr 2021 06:54:26 +0000
(23:54 -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 d48726a1c66ad13761ce8b32ff8f1fadbb87f7a0..4ba99ad76855005cba92fe909ad3b45cedb6cbca 100644
(file)
--- a/
src/stmf0/ao_adc_stm.c
+++ b/
src/stmf0/ao_adc_stm.c
@@
-288,7
+288,7
@@
ao_adc_init(void)
stm_adc.cfgr2 = STM_ADC_CFGR2_CKMODE_PCLK_2 << STM_ADC_CFGR2_CKMODE;
/* Shortest sample time */
- stm_adc.smpr = STM_ADC_SMPR_SMP_
71
_5 << STM_ADC_SMPR_SMP;
+ stm_adc.smpr = STM_ADC_SMPR_SMP_
239
_5 << STM_ADC_SMPR_SMP;
stm_adc.chselr = chselr;