STM32F4xx. Added interrupt handler definitions and RCC switch macros for TIM10, TIM11.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7769 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
28b2143a44
commit
383df30122
|
@ -106,8 +106,10 @@
|
|||
#define STM32_TIM8_UP_HANDLER VectorF0
|
||||
#define STM32_TIM8_CC_HANDLER VectorF8
|
||||
#define STM32_TIM9_HANDLER VectorA0
|
||||
#define STM32_TIM10_HANDLER VectorA4 /* Note: same as STM32_TIM1_UP */
|
||||
#define STM32_TIM11_HANDLER VectorA8
|
||||
#define STM32_TIM12_HANDLER VectorEC
|
||||
#define STM32_TIM13_HANDLER VectorF0 /* Note: same as STM32_TIM8_UP */
|
||||
#define STM32_TIM14_HANDLER VectorF4
|
||||
|
||||
#define STM32_TIM1_UP_NUMBER 25
|
||||
|
@ -121,8 +123,10 @@
|
|||
#define STM32_TIM8_UP_NUMBER 44
|
||||
#define STM32_TIM8_CC_NUMBER 46
|
||||
#define STM32_TIM9_NUMBER 24
|
||||
#define STM32_TIM10_NUMBER 25 /* Note: same as STM32_TIM1_UP */
|
||||
#define STM32_TIM11_NUMBER 26
|
||||
#define STM32_TIM12_NUMBER 43
|
||||
#define STM32_TIM13_NUMBER 44 /* Note: same as STM32_TIM8_UP */
|
||||
#define STM32_TIM14_NUMBER 45
|
||||
|
||||
/*
|
||||
|
|
|
@ -1113,6 +1113,33 @@
|
|||
*/
|
||||
#define rccResetTIM9() rccResetAPB2(RCC_APB2RSTR_TIM9RST)
|
||||
|
||||
/**
|
||||
* @brief Enables the TIM10 peripheral clock.
|
||||
* @note The @p lp parameter is ignored in this family.
|
||||
*
|
||||
* @param[in] lp low power enable flag
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
#define rccEnableTIM10(lp) rccEnableAPB2(RCC_APB2ENR_TIM10EN, lp)
|
||||
|
||||
/**
|
||||
* @brief Disables the TIM10 peripheral clock.
|
||||
* @note The @p lp parameter is ignored in this family.
|
||||
*
|
||||
* @param[in] lp low power enable flag
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
#define rccDisableTIM10(lp) rccDisableAPB2(RCC_APB2ENR_TIM10EN, lp)
|
||||
|
||||
/**
|
||||
* @brief Resets the TIM10 peripheral.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
#define rccResetTIM10() rccResetAPB2(RCC_APB2RSTR_TIM10RST)
|
||||
|
||||
/**
|
||||
* @brief Enables the TIM11 peripheral clock.
|
||||
* @note The @p lp parameter is ignored in this family.
|
||||
|
@ -1167,6 +1194,33 @@
|
|||
*/
|
||||
#define rccResetTIM12() rccResetAPB1(RCC_APB1RSTR_TIM12RST)
|
||||
|
||||
/**
|
||||
* @brief Enables the TIM13 peripheral clock.
|
||||
* @note The @p lp parameter is ignored in this family.
|
||||
*
|
||||
* @param[in] lp low power enable flag
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
#define rccEnableTIM13(lp) rccEnableAPB1(RCC_APB1ENR_TIM13EN, lp)
|
||||
|
||||
/**
|
||||
* @brief Disables the TIM13 peripheral clock.
|
||||
* @note The @p lp parameter is ignored in this family.
|
||||
*
|
||||
* @param[in] lp low power enable flag
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
#define rccDisableTIM13(lp) rccDisableAPB1(RCC_APB1ENR_TIM13EN, lp)
|
||||
|
||||
/**
|
||||
* @brief Resets the TIM13 peripheral.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
#define rccResetTIM13() rccResetAPB1(RCC_APB1RSTR_TIM13RST)
|
||||
|
||||
/**
|
||||
* @brief Enables the TIM14 peripheral clock.
|
||||
* @note The @p lp parameter is ignored in this family.
|
||||
|
|
Loading…
Reference in New Issue