diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2017-08-01 20:48:09 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2017-08-01 20:48:09 +0000 |
commit | 9058939dbe67670b079204d3b1ae337cf7d3cf60 (patch) | |
tree | fef0740f9e36b45a79b3f79ccb67a5c611964af2 | |
parent | 78e93f99de4a504b7b8cfc528b641470aa147e9e (diff) | |
download | ChibiOS-9058939dbe67670b079204d3b1ae337cf7d3cf60.tar.gz ChibiOS-9058939dbe67670b079204d3b1ae337cf7d3cf60.tar.bz2 ChibiOS-9058939dbe67670b079204d3b1ae337cf7d3cf60.zip |
Fixed Bug #868
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10349 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/ports/STM32/STM32L0xx/hal_lld.h | 14 | ||||
-rw-r--r-- | readme.txt | 4 |
2 files changed, 10 insertions, 8 deletions
diff --git a/os/hal/ports/STM32/STM32L0xx/hal_lld.h b/os/hal/ports/STM32/STM32L0xx/hal_lld.h index 550308803..1d93ac4c5 100644 --- a/os/hal/ports/STM32/STM32L0xx/hal_lld.h +++ b/os/hal/ports/STM32/STM32L0xx/hal_lld.h @@ -98,7 +98,7 @@ */
#define STM32_HSI16CLK 16000000 /**< 16MHz internal clock. */
#define STM32_HSI48CLK 48000000 /**< 48MHz internal clock. */
-#define STM32_LSICLK 38000 /**< Low speed internal clock. */
+#define STM32_LSICLK 37000 /**< Low speed internal clock. */
/** @} */
/**
@@ -160,12 +160,12 @@ #define STM32_PPRE1_DIV8 (6 << 8) /**< HCLK divided by 8. */
#define STM32_PPRE1_DIV16 (7 << 8) /**< HCLK divided by 16. */
-#define STM32_PPRE2_MASK (7 << 12) /**< PPRE2 field mask. */
-#define STM32_PPRE2_DIV1 (0 << 12) /**< HCLK divided by 1. */
-#define STM32_PPRE2_DIV2 (4 << 12) /**< HCLK divided by 2. */
-#define STM32_PPRE2_DIV4 (5 << 12) /**< HCLK divided by 4. */
-#define STM32_PPRE2_DIV8 (6 << 12) /**< HCLK divided by 8. */
-#define STM32_PPRE2_DIV16 (7 << 12) /**< HCLK divided by 16. */
+#define STM32_PPRE2_MASK (7 << 11) /**< PPRE2 field mask. */
+#define STM32_PPRE2_DIV1 (0 << 11) /**< HCLK divided by 1. */
+#define STM32_PPRE2_DIV2 (4 << 11) /**< HCLK divided by 2. */
+#define STM32_PPRE2_DIV4 (5 << 11) /**< HCLK divided by 4. */
+#define STM32_PPRE2_DIV8 (6 << 11) /**< HCLK divided by 8. */
+#define STM32_PPRE2_DIV16 (7 << 11) /**< HCLK divided by 16. */
#define STM32_STOPWUCK_MASK (1 << 15) /**< PLLDIV field mask. */
#define STM32_STOPWUCK_MSI (0 << 15) /**< MSI is wakeup clock. */
diff --git a/readme.txt b/readme.txt index 9b0165163..cda263f3c 100644 --- a/readme.txt +++ b/readme.txt @@ -89,7 +89,9 @@ *****************************************************************************
*** Next ***
-- HAL: Fixed wrong bit mask in STM32L0 hal lld (bug #866)(backported to
+- HAL: Fixed wrong PPRE2 and LSI related macros in STM32L0 hal lld (bug #868)
+ (backported to 17.6.1 and 16.1.9).
+- HAL: Fixed wrong bit mask in STM32L0 hal lld (bug #866)(backported to
17.6.1 and 16.1.9).
- RT: Fixed misplaced assertion in semaphores code (bug #865)(backported to
17.6.1 and 16.1.9).
|