From 41d14f76b5f57cce434048251df63eb6bbdb1df0 Mon Sep 17 00:00:00 2001 From: arighi Date: Tue, 30 Mar 2010 10:40:27 +0000 Subject: [PATCH] lm3s1968: return the correct CPU frequency in clock_get_rate(). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3324 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/drv/clock_lm3s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/cpu/cortex-m3/drv/clock_lm3s.c b/bertos/cpu/cortex-m3/drv/clock_lm3s.c index b91b09bd..2f2dfe6c 100644 --- a/bertos/cpu/cortex-m3/drv/clock_lm3s.c +++ b/bertos/cpu/cortex-m3/drv/clock_lm3s.c @@ -64,7 +64,7 @@ unsigned long clock_get_rate(void) reg32_t rcc = HWREG(SYSCTL_RCC); return rcc & SYSCTL_RCC_USESYSDIV ? - PLL_VCO / RCC_TO_DIV(rcc) : PLL_VCO; + PLL_VCO / 2 / RCC_TO_DIV(rcc) : PLL_VCO; } void clock_set_rate(void) -- 2.25.1