/* * User_TIM.h * * Created on: 2023年2月13日 * Author: Administrator */ #ifndef USER_INTERFACE_BTM_H_ #define USER_INTERFACE_BTM_H_ #include "debug.h" //宏定义 /* PWM Output Mode Definition */ #define PWM_MODE1 0 #define PWM_MODE2 1 /* PWM Output Mode Selection */ //#define PWM_MODE PWM_MODE1 #define PWM_MODE PWM_MODE1 //外部函数 extern void TIM9_PWMOut_Init( u16 arr, u16 psc ); extern void TIM10_PWMOut_Init( u16 arr, u16 psc );//1ms extern void TIM2_Init(void); extern void TIM3_Init(void); uint32_t getCurrentTime(void); #endif /* USER_INTERFACE_BTM_H_ */