projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: remove blank line in stmf0/ao_timer.c
[fw/altos]
/
src
/
stmf0
/
ao_timer.c
diff --git
a/src/stmf0/ao_timer.c
b/src/stmf0/ao_timer.c
index 82a4cad68471829a14a395bc617f632b10bf723b..7d96542bff8fcb58f910de552be1ad325780280f 100644
(file)
--- a/
src/stmf0/ao_timer.c
+++ b/
src/stmf0/ao_timer.c
@@
-127,7
+127,6
@@
ao_clock_enable_crs(void)
(0 << STM_CRS_CR_ERRIE) |
(0 << STM_CRS_CR_SYNCWARNIE) |
(0 << STM_CRS_CR_SYNCOKIE));
(0 << STM_CRS_CR_ERRIE) |
(0 << STM_CRS_CR_SYNCWARNIE) |
(0 << STM_CRS_CR_SYNCOKIE));
-
}
void
}
void
@@
-247,6
+246,10
@@
ao_clock_init(void)
/* Clear reset flags */
stm_rcc.csr |= (1 << STM_RCC_CSR_RMVF);
/* Clear reset flags */
stm_rcc.csr |= (1 << STM_RCC_CSR_RMVF);
+#if !AO_HSI && !AO_NEED_HSI
+ /* Turn off the HSI clock */
+ stm_rcc.cr &= ~(1 << STM_RCC_CR_HSION);
+#endif
#if DEBUG_THE_CLOCK
/* Output SYSCLK on PA8 for measurments */
#if DEBUG_THE_CLOCK
/* Output SYSCLK on PA8 for measurments */