aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-01 11:44:40 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-01 11:44:40 +0000
commit8fabd4641a6d869901256d8b1b4163a6a99b05f6 (patch)
tree93e80b82befc469802aa19ac552a58b3452214e8 /os/hal/platforms
parent228be31cd61c1cf26190431281a9ca9fd067c2e7 (diff)
downloadChibiOS-8fabd4641a6d869901256d8b1b4163a6a99b05f6.tar.gz
ChibiOS-8fabd4641a6d869901256d8b1b4163a6a99b05f6.tar.bz2
ChibiOS-8fabd4641a6d869901256d8b1b4163a6a99b05f6.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4378 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/STM8S/hal_lld.c3
-rw-r--r--os/hal/platforms/STM8S/hal_lld.h11
2 files changed, 0 insertions, 14 deletions
diff --git a/os/hal/platforms/STM8S/hal_lld.c b/os/hal/platforms/STM8S/hal_lld.c
index 7397211d8..3780b8678 100644
--- a/os/hal/platforms/STM8S/hal_lld.c
+++ b/os/hal/platforms/STM8S/hal_lld.c
@@ -99,9 +99,6 @@ 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
diff --git a/os/hal/platforms/STM8S/hal_lld.h b/os/hal/platforms/STM8S/hal_lld.h
index da17f8f55..dc55a1a72 100644
--- a/os/hal/platforms/STM8S/hal_lld.h
+++ b/os/hal/platforms/STM8S/hal_lld.h
@@ -141,13 +141,6 @@
#define STM8S_CPU_DIVIDER CLK_CPU_DIV1
#endif
-/**
- * @brief bxCAN divider value.
- */
-#if !defined(STM8S_CAN_DIVIDER_VALUE) || defined(__DOXYGEN__)
-#define STM8S_CAN_DIVIDER_VALUE 1
-#endif
-
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
@@ -170,10 +163,6 @@
#error "specified invalid CPU divider"
#endif
-#if (STM8S_CAN_DIVIDER_VALUE < 1) || (STM8S_CAN_DIVIDER_VALUE > 8)
-#error "specified invalid CAN divider value"
-#endif
-
#if STM8S_HSE_ENABLED && (HSECLK == 0)
#error "impossible to activate HSE"
#endif