You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
601 B

#ifndef _BSP_MOTO_H_
#define _BSP_MOTO_H_
#include "c_type51.h"
#include "bsp_config.h"
typedef struct
{
vU8 mode; ////
}TS_moto_;
extern TS_moto_ ts_moto;
////
/********
BI FI
INA INB OUTA OUTB
L L Hi-Z Hi-Z 待命状态
H L H L 前进
L H L H 后退
H H L L 刹车
按板子的设计 顺时针为正 前
*********/
#define D_MOTO_STANDBY 0
#define D_MOTO_FORWARD 2
#define D_MOTO_BACKWARD 1
#define D_MOTO_STOP 3
void L0_moto_run(unsigned char mode);
void L0_moto_init(unsigned char onf);
#endif////#ifndef _BSP_MOTO_H_