projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
altos/easytimer-v2: Generate combined .ihx file for seeed testing
[fw/altos]
/
src
/
stm32f1
/
ao_clock.c
diff --git
a/src/stm32f1/ao_clock.c
b/src/stm32f1/ao_clock.c
index 52830117cdf83ba1b200150b0d0baafa734b3ccf..899923dc5cfc0f501db1a554f774e4071b7b1b41 100644
(file)
--- a/
src/stm32f1/ao_clock.c
+++ b/
src/stm32f1/ao_clock.c
@@
-181,6
+181,8
@@
ao_clock_init(void)
/* Clear reset flags */
stm_rcc.csr |= (1 << STM_RCC_CSR_RMVF);
+ /* Enable AFIO */
+ stm_rcc.apb2enr |= (1 << STM_RCC_APB2ENR_AFIOEN);
/* Release PB3, PA15 and PB4 from JTAG use */
stm_afio.mapr = (stm_afio.mapr &