aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Debugger/debug_stub.h
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-01-12 16:30:33 +0800
committerTat-Chee Wan (USM)2011-01-12 16:30:33 +0800
commitcc6dfb5609d3b6b5fef576146b334c925c0b80d3 (patch)
tree0cfd61459709b69f7b453656829e6ccc3ce948a6 /AT91SAM7S256/armdebug/Debugger/debug_stub.h
parent067403060e4310a730b4ca19cf06aeb101d17af2 (diff)
parenteec175220428b9d63534086fbc05c72b01378acd (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
Diffstat (limited to 'AT91SAM7S256/armdebug/Debugger/debug_stub.h')
-rw-r--r--AT91SAM7S256/armdebug/Debugger/debug_stub.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/AT91SAM7S256/armdebug/Debugger/debug_stub.h b/AT91SAM7S256/armdebug/Debugger/debug_stub.h
index 8e51cfd..9cf4d0a 100644
--- a/AT91SAM7S256/armdebug/Debugger/debug_stub.h
+++ b/AT91SAM7S256/armdebug/Debugger/debug_stub.h
@@ -42,15 +42,16 @@
#define USB_NXT_SEGNUM_OFFSET 1
#define USB_NXT_TELEGRAMSIZE_OFFSET 2
-#define USB_NXT_TELEGRAM_RESP 0x8d
+#define USB_NXT_TELEGRAMTYPE 0x8d /* GDB debugger specific, no Response required */
#define USB_GDBMSG_START 3 /* Offset into USB Telegram buffer */
-#define USB_GDBMSG_CHKSUMOFFSET 3 /* to be subtracted from USB_NXT_TELEGRAMSIZE_OFFSET */
#define MSG_NUMSEGMENTS 3 /* For packet transfers */
#define MSG_SEGMENTSIZE (USB_BUFSIZE - USB_GDBMSG_START) /* 61 bytes per segment */
#define MSGBUF_SIZE (MSG_SEGMENTSIZE*MSG_NUMSEGMENTS) /* Debug Message Buffer Size, 61 x 3 = 183 chars = ~80 bytes of actual data */
+#define MSGBUF_CHKSUMOFFSET 3 /* to be subtracted from message length */
+#define MSGBUF_CTRLC 0x03 /* For Out of Band Signaling: not implemented yet */
#define MSGBUF_STARTCHAR '$'
#define MSGBUF_ACKCHAR '+'
#define MSGBUF_NAKCHAR '-'
@@ -59,6 +60,7 @@
#define MSGBUF_CPSRREG '!'
#define MSGBUF_SETCHAR '='
#define MSGBUF_CHKSUMCHAR '#'
+#define MSGBUF_MSGERROR -1
#define MSGBUF_CMDINDEX_OUTOFRANGE_VAL -1
/*@}*/