aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-16 19:46:45 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-16 19:46:45 +0000
commit0655c8307fbe763433070a3d384c08c3873ac81e (patch)
treec010f093935cccae6f48b17fd1dc8bfa43de6215 /os
parent354bd66eb083691cab4c2c29b32a836805ac5edc (diff)
downloadChibiOS-0655c8307fbe763433070a3d384c08c3873ac81e.tar.gz
ChibiOS-0655c8307fbe763433070a3d384c08c3873ac81e.tar.bz2
ChibiOS-0655c8307fbe763433070a3d384c08c3873ac81e.zip
Small fix and re-tested.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2372 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/STM8/hal_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM8/hal_lld.c b/os/hal/platforms/STM8/hal_lld.c
index de685aa30..87010481c 100644
--- a/os/hal/platforms/STM8/hal_lld.c
+++ b/os/hal/platforms/STM8/hal_lld.c
@@ -74,7 +74,7 @@ void hal_lld_init(void) {
/* HSE startup and stabilization if required.*/
#if STM8_HSE_ENABLED
- CLK->ECKR |= CLK_ECKCR_HSEEN;
+ CLK->ECKR |= CLK_ECKR_HSEEN;
while ((CLK->ECKR & CLK_ECKR_HSERDY) == 0)
;
#endif
@@ -102,7 +102,7 @@ void hal_lld_init(void) {
/* HSI disabled if it is no more required.*/
#if !STM8_HSI_ENABLED
- CLK->ICKR &= ~CLK_ICKR_HSION;
+ CLK->ICKR &= ~CLK_ICKR_HSIEN;
#endif
#endif /* !STM8_NO_CLOCK_INIT */
}