git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7704 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2015-03-01 09:07:50 +00:00
parent 40304ed993
commit e068671a36
1 changed files with 8 additions and 0 deletions

View File

@ -1046,7 +1046,11 @@
* @brief TIM1 frequency.
*/
#if STM32_TIM1SW == STM32_TIM1SW_PCLK2
#if STM32_PPRE2 == STM32_PPRE2_DIV1
#define STM32_TIM1CLK STM32_PCLK2
#else
#define STM32_TIM1CLK (STM32_PCLK2 * 2)
#endif
#elif STM32_TIM1SW == STM32_TIM1SW_PLLX2
#if (STM32_SW != STM32_SW_PLL) || \
@ -1064,7 +1068,11 @@
* @brief TIM8 frequency.
*/
#if STM32_TIM8SW == STM32_TIM8SW_PCLK2
#if STM32_PPRE2 == STM32_PPRE2_DIV1
#define STM32_TIM8CLK STM32_PCLK2
#else
#define STM32_TIM8CLK (STM32_PCLK2 * 2)
#endif
#elif STM32_TIM8SW == STM32_TIM8SW_PLLX2
#if (STM32_SW != STM32_SW_PLL) || \