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.

41 lines
601 B

1 year ago
#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_