Added timers clocks

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2030 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
ecarusi 2010-06-21 21:59:47 +00:00
parent d0d72baa87
commit 33c520eb8b
1 changed files with 15 additions and 0 deletions

View File

@ -324,6 +324,21 @@
#error "STM32_ADCCLK exceeding maximum frequency (14MHz)"
#endif
/**
* @brief Timers clocks.
*/
#if (STM32_PPRE1 == STM32_PPRE1_DIV1) || defined(__DOXYGEN__)
#define STM32_TIMCLK1 (STM32_PCLK1 * 1)
#else
#define STM32_TIMCLK1 (STM32_PCLK1 * 2)
#endif
#if (STM32_PPRE2 == STM32_PPRE2_DIV1) || defined(__DOXYGEN__)
#define STM32_TIMCLK2 (STM32_PCLK2 * 1)
#else
#define STM32_TIMCLK2 (STM32_PCLK2 * 2)
#endif
/**
* @brief Flash settings.
*/