refactor(algorithm): 移除冗余头文件 移除不必要的stdint.h头文件引用,统一使用<cstdint> refactor(sys): 清理系统级头文件依赖 移除未使用的头文件引用,统一整型类型定义,优化初始 化过程中的GPIO配置
23 lines
437 B
C++
23 lines
437 B
C++
#ifndef _TIMER_H
|
|
#define _TIMER_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <cstdint>
|
|
|
|
void User_timer_init(void);
|
|
void Set_Pwm(u16 channel, float duty_cycle);
|
|
void Set_3Pwm(float duty_cycle0, float duty_cycle1,float duty_cycle2);
|
|
void TIMER2_IRQHandler(void);
|
|
|
|
void timer1_pwm_config(void);
|
|
void timer1_gpio_config(void);
|
|
void TIMER1_IRQHandler(void); // 添加TIMER1中断处理函数声明
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |