projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
42a261a
)
altos/stm: Enable HSI timer when HAS_ADC_SINGLE is set
author
Keith Packard
<keithp@keithp.com>
Tue, 29 May 2018 02:18:48 +0000
(19:18 -0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 29 May 2018 02:18:48 +0000
(19:18 -0700)
The ADC unit always uses the HSI timer.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_timer.c
patch
|
blob
|
history
diff --git
a/src/stm/ao_timer.c
b/src/stm/ao_timer.c
index 1576a6c91f78e38132b119b025415e0c112a3970..7b526902169abc46cbb2f7bc61fbcab8e525c293 100644
(file)
--- a/
src/stm/ao_timer.c
+++ b/
src/stm/ao_timer.c
@@
-149,7
+149,7
@@
ao_clock_init(void)
#define STM_RCC_CFGR_PLLSRC_TARGET_CLOCK (0 << STM_RCC_CFGR_PLLSRC)
#endif
-#if !AO_HSE || HAS_ADC
+#if !AO_HSE || HAS_ADC
|| HAS_ADC_SINGLE
/* Enable HSI RC clock 16MHz */
stm_rcc.cr |= (1 << STM_RCC_CR_HSION);
while (!(stm_rcc.cr & (1 << STM_RCC_CR_HSIRDY)))