From f5d36450439fbd43797fed45d87a34f714c03872 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 30 Jun 2012 07:51:29 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4360 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM8S/hal_lld.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/hal/platforms/STM8S/hal_lld.c b/os/hal/platforms/STM8S/hal_lld.c index 980cf4bab..7397211d8 100644 --- a/os/hal/platforms/STM8S/hal_lld.c +++ b/os/hal/platforms/STM8S/hal_lld.c @@ -99,7 +99,9 @@ void hal_lld_init(void) { /* Other clock related initializations.*/ CLK->CSSR = 0; CLK->CCOR = 0; +#if defined(STM8S208) CLK->CANCCR = STM8S_CAN_DIVIDER_VALUE; +#endif /* HSI disabled if it is no more required.*/ #if !STM8S_HSI_ENABLED