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.

58 lines
1.2 KiB

#ifndef __PAINT_ROBOT_OLD_H__
#define __PAINT_ROBOT_OLD_H__
#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */
2 days ago
#define hlpuart1Exit 6
//#define NewCANSendVersion 1
2 days ago
/*******IO***************/
#define Motor_Power_IO_CTL 0 //K1
#define PaintGun_IO_CTL 1 /*喷枪K2*/
/********PINSTATE*********/
#define K_ON_PaintGun 0 /*喷枪�???�???*/
#define K_OFF_PaintGun 1
#define K_ON_Motor 0 /*驱动电机*/
#define K_OFF_Motor 1
/*********************************************/
/*手动*/
#define Move_Manual 1 //�??
#define Move_Vertical_Move_To_Left 2 //竖直向左
#define Move_Vertical_Move_To_Right 3 //竖直向右
typedef enum _Upper_TakeControl_State
{
Not_Taken_Over = 0, Taken_Over = 1,
} Upper_TakeControl_State;
typedef enum _Button_Reset_State
{
Has_Reset = 0, Has_Not_Reset = 1,
} Button_Reset_State;
typedef enum _HardWare_Disconnected_State
{
CONNECTED = 0, DISCONNECTED = 1,
} HardWare_Disconnected_State;
typedef enum _HardWare_ErrorExisted_State
{
NOT_ErrorExisted = 0, ErrorExisted = 1,
} HardWare_ErrorExisted_State;
void CV_GV_Init();
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif