/* console.h Definitions for LU console */ #ifndef LU_CONSOLE_INCLUDED #define LU_CONSOLE_INCLUDED #define USARTBUFFSIZE 16 #define NO_COMMAND 0 #define FLISP_RESET 1 #define FLISP_NF 2 #define FLISP_CLK 3 #define MEM_DATA_SET 4 #define MEM_DATA_H_INC 5 #define MEM_DATA_H_DEC 6 #define MEM_DATA_L_INC 7 #define MEM_DATA_L_DEC 8 #define MEM_ADDR_H_INC 9 #define MEM_ADDR_H_DEC 10 #define MEM_ADDR_L_INC 11 #define MEM_ADDR_L_DEC 12 #define MEMORY_WRITE 13 #define MEMORY_READ 14 #define REGISTER_WRITE 15 #define REGISTER_READ 16 #define GET_VERSION 17 #define QUIET_MODE 18 #define INTERACTIVE_MODE 19 #define TEST_MODE 20 #define RUN_MODE 21 #define STEP_INSTRUCTION 22 #define SYSTEM_RESTART 23 #define UPDATE_ALL 24 #define DUMP_MEMORY 25 #define ZEROFILL 26 typedef struct cmd { unsigned char message; unsigned char p1; unsigned char p2; } CMD, *PCMD; #define MAX_CMD_BUF 1024 void consoleInit( void ); void consoleOut(unsigned char ch); void sendEOT( void ); void sendAsAscii( unsigned char ); void sendAscii( unsigned char); unsigned char binToAscii( unsigned char c ); void initCmd(void); void putCmd( PCMD p ); PCMD getCmd( void ); void initSystick(); extern unsigned char interactive_mode; #endif /* LU_CONSOLE_INCLUDED */