diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-16 18:39:47 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-16 18:39:47 +0000 |
commit | 354bd66eb083691cab4c2c29b32a836805ac5edc (patch) | |
tree | a6cdb1387752aaea3715b7551b24c2aaf3c64be6 /os/hal/platforms/STM8L/hal_lld.c | |
parent | 5962467685985de2d79a85a1fcf8b1961d3d72de (diff) | |
download | ChibiOS-354bd66eb083691cab4c2c29b32a836805ac5edc.tar.gz ChibiOS-354bd66eb083691cab4c2c29b32a836805ac5edc.tar.bz2 ChibiOS-354bd66eb083691cab4c2c29b32a836805ac5edc.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2371 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM8L/hal_lld.c')
-rw-r--r-- | os/hal/platforms/STM8L/hal_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM8L/hal_lld.c b/os/hal/platforms/STM8L/hal_lld.c index 2d5014303..72cb830f3 100644 --- a/os/hal/platforms/STM8L/hal_lld.c +++ b/os/hal/platforms/STM8L/hal_lld.c @@ -100,7 +100,7 @@ void hal_lld_init(void) { /* SYSCLK switch to the selected source, not necessary if it is HSI.*/
#if STM8L_SYSCLK_SOURCE != CLK_SYSSEL_HSI
/* Switching clock (manual switch mode).*/
- CLK->SWR = STM8_CLOCK_SOURCE;
+ CLK->SWR = STM8L_SYSCLK_SOURCE;
while ((CLK->SWCR & CLK_SWCR_SWIF) == 0)
;
CLK->SWCR = CLK_SWCR_SWEN;
|