From 1d6a32367685583864d10cba03102578e15f04c8 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 13 Nov 2010 09:59:02 +0000 Subject: STM8L clock initialization now apparently working. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2358 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h | 2 +- os/hal/platforms/STM8L/hal_lld.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h index ea9759ad5..69a205fb6 100644 --- a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h +++ b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h @@ -28,7 +28,7 @@ /* * HAL general settings. */ -#define STM8L_NO_CLOCK_INIT TRUE +#define STM8L_NO_CLOCK_INIT FALSE #define STM8L_HSI_ENABLED TRUE #define STM8L_LSI_ENABLED TRUE #define STM8L_HSE_ENABLED FALSE diff --git a/os/hal/platforms/STM8L/hal_lld.h b/os/hal/platforms/STM8L/hal_lld.h index a26e6ba84..1df041782 100644 --- a/os/hal/platforms/STM8L/hal_lld.h +++ b/os/hal/platforms/STM8L/hal_lld.h @@ -217,7 +217,7 @@ #error "requested LSE clock is not enabled" #endif -#if !STM8L_CLOCK_INIT +#if STM8L_NO_CLOCK_INIT #define SYSCLK (HSICLK / 8) #elif STM8L_SYSCLK_SOURCE == CLK_SYSSEL_HSI #define SYSCLK (HSICLK / (1 << STM8L_SYSCLK_DIVIDER)) @@ -231,7 +231,7 @@ #error "specified invalid SYSCLK source" #endif -#if !STM8L_CLOCK_INIT +#if STM8L_NO_CLOCK_INIT #define RTCCLK 0 #elif STM8L_RTCCLK_SOURCE == CLK_RTCSEL_HSI #define RTCCLK (HSICLK / (1 << STM8L_RTCCLK_DIVIDER)) -- cgit v1.2.3