refactor(algorithm): 移除冗余头文件 移除不必要的stdint.h头文件引用,统一使用<cstdint> refactor(sys): 清理系统级头文件依赖 移除未使用的头文件引用,统一整型类型定义,优化初始 化过程中的GPIO配置
14 lines
294 B
C
14 lines
294 B
C
#ifndef _MOTOR_H
|
|
#define _MOTOR_H
|
|
|
|
// 定义电机驱动使能引脚
|
|
#define MOTOR_EN_GPIO_PORT GPIOC
|
|
#define MOTOR_EN_GPIO_PIN GPIO_PIN_13
|
|
#define RCU_MOTOR_EN_GPIO RCU_GPIOC
|
|
|
|
void motor_init(void);
|
|
void motor_reset(void);
|
|
void motor_resume(void);
|
|
void motor_sleep(void);
|
|
|
|
#endif |