Files
2025-06-18 09:08:17 +08:00

20 lines
603 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __TIMER_H
#define __TIMER_H
#include "sys.h"
//void TIM1_PWM_SetFreq(uint32_t freq,u16 psc);
void TIM1_PWM_CH1_Init(void);
void TIM1_Int_Init(u16 arr,u16 psc);
void TIM1_PWM_Init(u16 arr,u16 psc);
void TIM2_Int_Init(u16 arr,u16 psc);//TIM2为捕获定时器限位 fan ?
void TIM3_Int_Init(u16 arr,u16 psc);//TIM3为捕获定时器 Nmbernow,NmberTarget
void TIM5_Int_Init(u16 arr,u16 psc);//TIM4为捕获定时器限位 loop
void TIM2_Capture_Init(void); //正限位
void TIM4_Capture_Init(void); //负限位
void EXTI_Config(void); //TIM4有误改为 EXTI
#endif