aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-05-07 14:05:20 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-05-07 14:05:20 +0000
commite1474c129264bf3c378544cf25c79fe8aaf8f5d5 (patch)
tree8631641b519066a5fdf27ef58aac19ac00a6d6ff /os/hal
parentb058a251b800ac85c10019c6123a629bc942eaaf (diff)
downloadChibiOS-e1474c129264bf3c378544cf25c79fe8aaf8f5d5.tar.gz
ChibiOS-e1474c129264bf3c378544cf25c79fe8aaf8f5d5.tar.bz2
ChibiOS-e1474c129264bf3c378544cf25c79fe8aaf8f5d5.zip
Added guard for STM32_TIMPRE.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12013 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/STM32/STM32F4xx/hal_lld.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F4xx/hal_lld.h b/os/hal/ports/STM32/STM32F4xx/hal_lld.h
index de5aaa5cb..c4dbfa9ed 100644
--- a/os/hal/ports/STM32/STM32F4xx/hal_lld.h
+++ b/os/hal/ports/STM32/STM32F4xx/hal_lld.h
@@ -914,6 +914,13 @@
#endif
/**
+ * @brief TIM prescaler clock source.
+ */
+#if !defined(STM32_TIMPRE) || defined(__DOXYGEN__)
+#define STM32_TIMPRE STM32_TIMPRE_PCLK
+#endif
+
+/**
* @brief PLL48CLK clock source.
*/
#if !defined(STM32_CK48MSEL) || defined(__DOXYGEN__)