1 /************************************************************************/
5 /* This file contains console debug command table structure and */
6 /* relative defination. */
16 /************************************************************************/
20 #define ATH_DEBUGGER_VERSION_STR "Magpie Debugger: "ATH_VERSION_STR
21 #define ATH_COMMAND_LIST_STR "\n\r===Command Listing===\n\r"
23 #define DB_MAX_COMMAND_LENGTH 40 /* Maximum command line length */
24 #define COMMAND_BUFFER_SIZE 6 /* Maximum command buffer size */
26 struct DB_COMMAND_STRUCT
28 char* cmd_str; /* Command string */
29 char* help_str; /* Help description */
30 int (*cmd_func)(char *, char*, char*, char*); /* Command function */
33 #define zm_uart_send(x, y) A_PUTS(x)
34 #define zm_get_char(x) A_GETC(x)
36 /******** hardware API table structure (API descriptions below) *************/
38 void (*_dbg_init)(void);
39 void (*_dbg_task)(void);