From d197adf353ec5503c72a4554aca2a463bb685932 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 28 Apr 2017 00:04:33 -0700 Subject: [PATCH] altos/stmf0: Fix HSI clock rate. It's 8MHz, not 16MHz Signed-off-by: Keith Packard --- src/stmf0/stm32f0.h | 4 ++-- 1 file 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) -- 2.30.2