aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32L4xx/hal_lld.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-04-08 14:06:06 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-04-08 14:06:06 +0000
commitda8b8145de60acc87975d5f0d0d4324144d45ceb (patch)
treef3d919274a04d8d6b71b59c3310ec7100be11e55 /os/hal/ports/STM32/STM32L4xx/hal_lld.h
parent1f8e3b17dd26db3a4058ebd3fea110c8b15b1aac (diff)
downloadChibiOS-da8b8145de60acc87975d5f0d0d4324144d45ceb.tar.gz
ChibiOS-da8b8145de60acc87975d5f0d0d4324144d45ceb.tar.bz2
ChibiOS-da8b8145de60acc87975d5f0d0d4324144d45ceb.zip
L4+ support, not complete.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11876 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/ports/STM32/STM32L4xx/hal_lld.h')
-rw-r--r--os/hal/ports/STM32/STM32L4xx/hal_lld.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/STM32L4xx/hal_lld.h b/os/hal/ports/STM32/STM32L4xx/hal_lld.h
index d054d5679..c2a861b4c 100644
--- a/os/hal/ports/STM32/STM32L4xx/hal_lld.h
+++ b/os/hal/ports/STM32/STM32L4xx/hal_lld.h
@@ -488,6 +488,14 @@
#endif
/**
+ * @brief STM32_PLLPDIV_VALUE divider value or zero if disabled.
+ * @note The allowed values are 0, 2..31.
+ */
+#if !defined(STM32_PLLPDIV_VALUE) || defined(__DOXYGEN__)
+#define STM32_PLLPDIV_VALUE 0
+#endif
+
+/**
* @brief PLLP divider value.
* @note The allowed values are 7, 17.
* @note The default value is calculated for a 80MHz system clock from
@@ -1267,7 +1275,8 @@
/**
* @brief STM32_PLLPDIV field. (Only for STM32L496xx/4A6xx)
*/
-#if ((STM32_PLLPDIV_VALUE != 1) && (STM32_PLLPDIV_VALUE <= 31)) || \
+#if (STM32_PLLPDIV_VALUE == 0) || \
+ ((STM32_PLLPDIV_VALUE >= 2) && (STM32_PLLPDIV_VALUE <= 31)) || \
defined(__DOXYGEN__)
#define STM32_PLLPDIV (STM32_PLLPDIV_VALUE << 27)
#else