aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM8L
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-13 09:59:02 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-13 09:59:02 +0000
commit1d6a32367685583864d10cba03102578e15f04c8 (patch)
tree99716cca49aaa447f8dfa511f190195306631fd5 /os/hal/platforms/STM8L
parent11c89928eac9e2a9916940b8f634f3d96b60f17e (diff)
downloadChibiOS-1d6a32367685583864d10cba03102578e15f04c8.tar.gz
ChibiOS-1d6a32367685583864d10cba03102578e15f04c8.tar.bz2
ChibiOS-1d6a32367685583864d10cba03102578e15f04c8.zip
STM8L clock initialization now apparently working.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2358 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM8L')
-rw-r--r--os/hal/platforms/STM8L/hal_lld.h4
1 files changed, 2 insertions, 2 deletions
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))