projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MSP430 test cases, stable poking of RAM.
[goodfet]
/
firmware
/
include
/
command.h
diff --git
a/firmware/include/command.h
b/firmware/include/command.h
index
a20067a
..
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)
@@
-18,6
+23,8
@@
extern unsigned char cmddata[256];
#define NOK 0x7E
#define OK 0x7F
#define NOK 0x7E
#define OK 0x7F
+#define DEBUGSTR 0xFF
+
// Monitor Commands
#define MONITOR_CHANGE_BAUD 0x80
#define MONITOR_RAM_PATTERN 0x90
// Monitor Commands
#define MONITOR_CHANGE_BAUD 0x80
#define MONITOR_RAM_PATTERN 0x90
@@
-27,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
@@
-93,8
+107,10
@@
void txdata(unsigned char app,
void txstring(unsigned char app,
unsigned char verb,
const char *str);
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);
void delay(unsigned int count);
//! MSDelay
void msdelay(unsigned int ms);