Repair of 16-bit MSP430 JTAG nearly complete, dump works well.
[goodfet] / firmware / include / command.h
index 5855699..e99a396 100644 (file)
@@ -1,7 +1,12 @@
-// Command handling functions.
+/*! \file command.h
+  \author Travis Goodspeed
+  \brief Command codes and buffers.
+*/
 
 //! Global data buffer.
-extern unsigned char cmddata[256];
+extern unsigned char cmddata[0x100];
+extern unsigned char silent;
+
 #define cmddataword ((unsigned int*) cmddata)
 #define cmddatalong ((unsigned long*) cmddata)
 #define memorybyte ((unsigned char*) 0)
@@ -18,11 +23,24 @@ extern unsigned char cmddata[256];
 #define NOK   0x7E
 #define OK    0x7F
 
+#define DEBUGSTR 0xFF
+
 // Monitor Commands
 #define MONITOR_CHANGE_BAUD 0x80
 #define MONITOR_RAM_PATTERN 0x90
 #define MONITOR_RAM_DEPTH 0x91
 
+#define MONITOR_DIR 0xA0
+#define MONITOR_OUT 0xA1
+#define MONITOR_IN  0xA2
+
+#define MONITOR_SILENT 0xB0
+
+#define MONITOR_READBUF 0xC0
+#define MONITOR_WRITEBUF 0xC1
+#define MONITOR_SIZEBUF 0xC2
+
+
 //CHIPCON commands
 #define CC_CHIP_ERASE 0x80
 #define CC_WR_CONFIG 0x81
@@ -89,8 +107,10 @@ void txdata(unsigned char app,
 void txstring(unsigned char app,
              unsigned char verb,
              const char *str);
+//! Transmit a debug string.
+void debugstr(const char *str);
 
-//! Delay
+//! Delay for a count.
 void delay(unsigned int count);
 //! MSDelay
 void msdelay(unsigned int ms);