summaryrefslogtreecommitdiff
path: root/src/stmf0/stm32f0.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-04-28 00:04:33 -0700
committerKeith Packard <keithp@keithp.com>2017-04-28 00:04:33 -0700
commitd197adf353ec5503c72a4554aca2a463bb685932 (patch)
treec421fbb31c37262f040168e01f8d5e2139ab44e1 /src/stmf0/stm32f0.h
parent2b3c79e9d88c9bb0b5aca4bc20fa942ebcfe40fc (diff)
altos/stmf0: Fix HSI clock rate.
It's 8MHz, not 16MHz Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stmf0/stm32f0.h')
-rw-r--r--src/stmf0/stm32f0.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stmf0/stm32f0.h b/src/stmf0/stm32f0.h
index e53a5dfd..61faf2e4 100644
--- a/src/stmf0/stm32f0.h
+++ b/src/stmf0/stm32f0.h
@@ -282,8 +282,8 @@ struct stm_rcc {
extern struct stm_rcc stm_rcc;
-/* Nominal high speed internal oscillator frequency is 16MHz */
-#define STM_HSI_FREQ 16000000
+/* Nominal high speed internal oscillator frequency is 8MHz */
+#define STM_HSI_FREQ 8000000
#define STM_RCC_CR_PLLRDY (25)
#define STM_RCC_CR_PLLON (24)