diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-06-30 07:51:29 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-06-30 07:51:29 +0000 |
commit | f5d36450439fbd43797fed45d87a34f714c03872 (patch) | |
tree | 3ef72bd5effa07b8125bcbca9bc9522179124718 | |
parent | f69595b0dd303949c49c96a2408c81dcaa7cd137 (diff) | |
download | ChibiOS-f5d36450439fbd43797fed45d87a34f714c03872.tar.gz ChibiOS-f5d36450439fbd43797fed45d87a34f714c03872.tar.bz2 ChibiOS-f5d36450439fbd43797fed45d87a34f714c03872.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4360 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/platforms/STM8S/hal_lld.c | 2 |
1 files changed, 2 insertions, 0 deletions
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
|