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 --- os/hal/platforms/STM8L/hal_lld.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os/hal/platforms/STM8L') 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