diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-08-22 10:32:35 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-08-22 10:32:35 +0000 |
commit | 491c9ac55a0337cd248bb735466bd1dee638de51 (patch) | |
tree | f9ae2ce590e6cda26c7f1ce1ffde84c5e9fdc8ff /os/hal/ports/STM32/STM32F7xx/hal_lld.h | |
parent | bb48071bc5f863fcecb8c43f88f50235c60a2768 (diff) | |
download | ChibiOS-491c9ac55a0337cd248bb735466bd1dee638de51.tar.gz ChibiOS-491c9ac55a0337cd248bb735466bd1dee638de51.tar.bz2 ChibiOS-491c9ac55a0337cd248bb735466bd1dee638de51.zip |
Fixed bug #874.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10457 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F7xx/hal_lld.h')
-rw-r--r-- | os/hal/ports/STM32/STM32F7xx/hal_lld.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/STM32F7xx/hal_lld.h b/os/hal/ports/STM32/STM32F7xx/hal_lld.h index 8bce8bfbe..904617a64 100644 --- a/os/hal/ports/STM32/STM32F7xx/hal_lld.h +++ b/os/hal/ports/STM32/STM32F7xx/hal_lld.h @@ -1456,7 +1456,7 @@ #if (STM32_PLLI2SDIVQ_VALUE < 1) || (STM32_PLLI2SDIVQ_VALUE > 32)
#error "STM32_PLLI2SDIVQ_VALUE out of acceptable range"
#endif
-#define STM32_PLLI2SDIVQ (STM32_PLLI2SDIVQ_VALUE << 0)
+#define STM32_PLLI2SDIVQ ((STM32_PLLI2SDIVQ_VALUE - 1) << 0)
/**
* @brief PLLI2S Q output clock frequency after divisor.
@@ -1562,7 +1562,7 @@ #if (STM32_PLLSAIDIVQ_VALUE < 1) || (STM32_PLLSAIDIVQ_VALUE > 32)
#error "STM32_PLLSAIDIVQ_VALUE out of acceptable range"
#endif
-#define STM32_PLLSAIDIVQ (STM32_PLLSAIDIVQ_VALUE << 8)
+#define STM32_PLLSAIDIVQ ((STM32_PLLSAIDIVQ_VALUE - 1) << 8)
/**
* @brief PLLSAI Q output clock frequency after divisor.
|