00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 #ifndef _USHELL_TASK_H_ 00012 #define _USHELL_TASK_H_ 00013 00014 //_____ I N C L U D E S ____________________________________________________ 00015 00016 #include "config.h" 00017 00018 //_____ M A C R O S ________________________________________________________ 00019 00020 00021 // Commands shell 00022 #define CMD_NONE 0x00 00023 #define CMD_RUN 0x01 00024 #define CMD_STOP 0x02 00025 #define CMD_FORWARD 0x03 00026 #define CMD_BACKWARD 0x04 00027 #define CMD_SET_SPEED 0x05 00028 #define CMD_SET_JP 0x06 00029 #define CMD_GET_STATUS 0x07 00030 #define CMD_GET_ID 0x08 00031 #define CMD_WR_REGPARAM 0x09 00032 #define CMD_RD_REGPARAM 0x0A 00033 00034 00035 //_____ D E C L A R A T I O N S ____________________________________________ 00036 extern volatile Bool ushell_active; 00037 extern Bool is_data_to_send; 00038 extern Bool is_data_received; 00039 extern unsigned char data_to_send; 00040 extern unsigned char data_received; 00041 00042 00043 void build_cmd(void); 00044 void parse_cmd(void); 00045 void ushell_task_init(void); 00046 void ushell_task(void); 00047 00048 #endif /* _USHELL_TASK_H_ */
1.5.7.1