From e1474c129264bf3c378544cf25c79fe8aaf8f5d5 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 7 May 2018 14:05:20 +0000 Subject: Added guard for STM32_TIMPRE. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12013 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/ports/STM32/STM32F4xx/hal_lld.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'os/hal/ports/STM32') 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 @@ -913,6 +913,13 @@ #define STM32_SAI2SEL STM32_SAI2SEL_OFF #endif +/** + * @brief TIM prescaler clock source. + */ +#if !defined(STM32_TIMPRE) || defined(__DOXYGEN__) +#define STM32_TIMPRE STM32_TIMPRE_PCLK +#endif + /** * @brief PLL48CLK clock source. */ -- cgit v1.2.3