Fixed bug #557.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7704 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
40304ed993
commit
e068671a36
|
@ -1046,7 +1046,11 @@
|
||||||
* @brief TIM1 frequency.
|
* @brief TIM1 frequency.
|
||||||
*/
|
*/
|
||||||
#if STM32_TIM1SW == STM32_TIM1SW_PCLK2
|
#if STM32_TIM1SW == STM32_TIM1SW_PCLK2
|
||||||
|
#if STM32_PPRE2 == STM32_PPRE2_DIV1
|
||||||
#define STM32_TIM1CLK STM32_PCLK2
|
#define STM32_TIM1CLK STM32_PCLK2
|
||||||
|
#else
|
||||||
|
#define STM32_TIM1CLK (STM32_PCLK2 * 2)
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif STM32_TIM1SW == STM32_TIM1SW_PLLX2
|
#elif STM32_TIM1SW == STM32_TIM1SW_PLLX2
|
||||||
#if (STM32_SW != STM32_SW_PLL) || \
|
#if (STM32_SW != STM32_SW_PLL) || \
|
||||||
|
@ -1064,7 +1068,11 @@
|
||||||
* @brief TIM8 frequency.
|
* @brief TIM8 frequency.
|
||||||
*/
|
*/
|
||||||
#if STM32_TIM8SW == STM32_TIM8SW_PCLK2
|
#if STM32_TIM8SW == STM32_TIM8SW_PCLK2
|
||||||
|
#if STM32_PPRE2 == STM32_PPRE2_DIV1
|
||||||
#define STM32_TIM8CLK STM32_PCLK2
|
#define STM32_TIM8CLK STM32_PCLK2
|
||||||
|
#else
|
||||||
|
#define STM32_TIM8CLK (STM32_PCLK2 * 2)
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif STM32_TIM8SW == STM32_TIM8SW_PLLX2
|
#elif STM32_TIM8SW == STM32_TIM8SW_PLLX2
|
||||||
#if (STM32_SW != STM32_SW_PLL) || \
|
#if (STM32_SW != STM32_SW_PLL) || \
|
||||||
|
|
Loading…
Reference in New Issue