Erase waits for competion to return.
[goodfet] / firmware / include / command.h
index c1269e6..8cc3f4f 100644 (file)
@@ -19,6 +19,8 @@ extern unsigned char cmddata[256];
 
 // Monitor Commands
 #define MONITOR_CHANGE_BAUD 0x80
+#define MONITOR_RAM_PATTERN 0x90
+#define MONITOR_RAM_DEPTH 0x91
 
 //CHIPCON commands
 #define CC_CHIP_ERASE 0x80
@@ -49,6 +51,13 @@ extern unsigned char cmddata[256];
 #define JTAG_DR_SHIFT 0x81
 #define JTAG_DR_SHIFT20 0x91
 
+//SPI commands
+#define SPI_JEDEC 0x80
+#define SPI_ERASE 0x81
+
+//OCT commands
+#define OCT_CMP 0x90
+
 //JTAG430 commands
 #define JTAG430_HALTCPU 0xA0
 #define JTAG430_RELEASECPU 0xA1
@@ -72,6 +81,18 @@ void handle(unsigned char app,
 void txdata(unsigned char app,
            unsigned char verb,
            unsigned char len);
+//! Transmit a string.
+void txstring(unsigned char app,
+             unsigned char verb,
+             const char *str);
 
 //! Delay
 void delay(unsigned int count);
+
+
+void monitorhandle(unsigned char, unsigned char, unsigned char);
+void spihandle(unsigned char, unsigned char, unsigned char);
+void i2chandle(unsigned char, unsigned char, unsigned char);
+void cchandle(unsigned char, unsigned char, unsigned char);
+void jtaghandle(unsigned char, unsigned char, unsigned char);
+void jtag430handle(unsigned char, unsigned char, unsigned char);