diff options
Diffstat (limited to 'os/hal')
-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
|