projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Repair of 16-bit MSP430 JTAG nearly complete, dump works well.
[goodfet]
/
firmware
/
include
/
command.h
diff --git
a/firmware/include/command.h
b/firmware/include/command.h
index
3be397e
..
e99a396
100644
(file)
--- a/
firmware/include/command.h
+++ b/
firmware/include/command.h
@@
-1,7
+1,12
@@
-// Command handling functions.
+/*! \file command.h
+ \author Travis Goodspeed
+ \brief Command codes and buffers.
+*/
//! Global data buffer.
//! 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)
#define cmddataword ((unsigned int*) cmddata)
#define cmddatalong ((unsigned long*) cmddata)
#define memorybyte ((unsigned char*) 0)
@@
-29,6
+34,13
@@
extern unsigned char cmddata[256];
#define MONITOR_OUT 0xA1
#define MONITOR_IN 0xA2
#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
//CHIPCON commands
#define CC_CHIP_ERASE 0x80
#define CC_WR_CONFIG 0x81
@@
-98,7
+110,7
@@
void txstring(unsigned char app,
//! Transmit a debug string.
void debugstr(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);
void delay(unsigned int count);
//! MSDelay
void msdelay(unsigned int ms);