22 lines
520 B
C
22 lines
520 B
C
#ifndef __MOTOR_H
|
|
#define __MOTOR_H
|
|
|
|
#include "stm32f4xx.h"
|
|
#include "stdio.h"
|
|
|
|
void motor_start(void); //电机启动
|
|
void motor_stop(void); //电机停止
|
|
void FWD(void); //正转
|
|
void REV(void); //反转
|
|
void motor_mov_slow(void); //脉冲慢
|
|
void motor_mov_fast(void); //脉冲快
|
|
void mov_step(void); //点动
|
|
void Deal_Motor(void); //处理电机运行
|
|
void set_zero(void); //零点设置
|
|
void frequency_test(void); //频率测试
|
|
void go_begin(void); //回起点
|
|
void go_end(void); //回终点
|
|
void go_star(void); //回开始测试点
|
|
|
|
#endif
|