新聞中心

stm32 通用定時(shí)器中斷

作者: 時(shí)間:2016-11-13 來(lái)源:網(wǎng)絡(luò) 收藏
void TIM_DeInit(TIM_TypeDef* TIMx) // 用初始化參數(shù)初始化定時(shí)器的寄存器
TIMx: where x can be 1 to 17 to select the TIM peripheral.
TIM Output Compare Init structure definition
void TIM_OC1FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast)
void TIM_OC1Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
void TIM_OC1NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity)
void TIM_OC1PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity)
void TIM_OC1PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload)
void TIM_OC2FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast)
......
以O(shè)C開(kāi)頭的都應(yīng)該是定時(shí)器輸出比較的配置
void TIM_ICInit(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct)
以IC開(kāi)頭的是定時(shí)器輸入捕獲配置


關(guān)鍵詞: stm32通用定時(shí)器中

評(píng)論


技術(shù)專區(qū)

關(guān)閉