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:
parent
d0d72baa87
commit
33c520eb8b
|
@ -324,6 +324,21 @@
|
||||||
#error "STM32_ADCCLK exceeding maximum frequency (14MHz)"
|
#error "STM32_ADCCLK exceeding maximum frequency (14MHz)"
|
||||||
#endif
|
#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.
|
* @brief Flash settings.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue