diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM8/hal_lld.c | 4 |
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 */
}
|