Files
Chassis/project/code/Motor.h
T
2026-06-06 21:26:08 +08:00

18 lines
376 B
C

#ifndef __MOTOR_H
#define __MOTOR_H
#include "zf_common_typedef.h"
#define MOTOR_MAX (3000)
#define DIR_R (B11)
#define PWM_R (PWM_TIM_G0_CH0_B10)
#define DIR_L (A27)
#define PWM_L (PWM_TIM_G7_CH0_A26)
void motor_init(void);
void motor_set_pwm_right(int32 pwm);
void motor_set_pwm_left(int32 pwm);
#endif