Files
Motor_v2/Robot_V2/device/motor.h
T

14 lines
294 B
C
Raw Normal View History

2025-12-08 02:48:59 +08:00
#ifndef _MOTOR_H
#define _MOTOR_H
2026-01-24 01:50:39 +08:00
// 定义电机驱动使能引脚
#define MOTOR_EN_GPIO_PORT GPIOC
#define MOTOR_EN_GPIO_PIN GPIO_PIN_13
#define RCU_MOTOR_EN_GPIO RCU_GPIOC
2025-12-08 02:48:59 +08:00
void motor_init(void);
void motor_reset(void);
void motor_resume(void);
void motor_sleep(void);
#endif