11 #ifndef _USHELL_TASK_H_ 12 #define _USHELL_TASK_H_ 26 #define CMD_FORWARD 0x04 27 #define CMD_BACKWARD 0x05 28 #define CMD_SET_SPEED 0x06 29 #define CMD_GET_ID 0x07 30 #define CMD_GET_STATUS0 0x08 31 #define CMD_GET_STATUS1 0x09 39 #define BKSPACE_CHAR 0x08 40 #define ABORT_CHAR CTRL_C 41 #define QUIT_APPEND CTRL_Q 46 #define STR_HELP "help" 47 #define STR_FORWARD "fw" 48 #define STR_BACKWARD "bw" 49 #define STR_SET_SPEED "ss" 50 #define STR_GET_ID "gi" 51 #define STR_GET_STATUS0 "g0" 52 #define STR_GET_STATUS1 "g1" 55 #define MSG_PROMPT "\r>" 56 #define MSG_WELCOME "\rATMEL Motor Control Interface" 57 #define MSG_ER_CMD_NOT_FOUND "Unknown Command" 73 U8
mystrncmp(U8 *str1,U8 code *str2,U8 i);
U8 mystrncmp(U8 *str1, U8 code *str2, U8 i)
compares two strings located in flash code area.
volatile Bool ushell_active
void ushell_task(void)
Entry point of the explorer task management.
void print_msg(U8 code *str)
Display an ASCII code string.
void build_cmd(void)
get the full command line to be interpreted.
void parse_cmd(void)
decodes full command line into command type and arguments
void ushell_task_init(void)
This function initializes the hardware/software ressources required for ushell task.