aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Debugger/debug_internals.h
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-04-18 15:17:23 +0800
committerTat-Chee Wan (USM)2011-04-18 15:17:23 +0800
commit96232341cd6b5f788ba1faf9b3347c286274a89c (patch)
tree4a405eeb4be70d85d21a03a9eb97f24f06911388 /AT91SAM7S256/armdebug/Debugger/debug_internals.h
parentbe876d6876b41b7a9a732941913e6a96f68cc9ea (diff)
parentaf5489586e159b37b58d6835f590a96d438e432a (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
Diffstat (limited to 'AT91SAM7S256/armdebug/Debugger/debug_internals.h')
-rw-r--r--AT91SAM7S256/armdebug/Debugger/debug_internals.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/AT91SAM7S256/armdebug/Debugger/debug_internals.h b/AT91SAM7S256/armdebug/Debugger/debug_internals.h
index daab9b4..82c0e38 100644
--- a/AT91SAM7S256/armdebug/Debugger/debug_internals.h
+++ b/AT91SAM7S256/armdebug/Debugger/debug_internals.h
@@ -38,16 +38,16 @@
#define USB_BUFSIZE 64 /* USB Buffer size for AT91SAM7S */
-#define USB_NXT_TELEGRAMTYPE_OFFSET 0 /* NXT Direct Command/Response Header */
-#define USB_NXT_SEGNUM_OFFSET 1
-#define USB_NXT_TELEGRAMSIZE_OFFSET 2
+#define NXT_MSG_TELEGRAMTYPE_OFFSET 0 /* NXT Direct Command/Response Header */
+#define NXT_MSG_SEGNUM_OFFSET 1
+#define NXT_MSG_TELEGRAMSIZE_OFFSET 2
-#define USB_NXT_TELEGRAMTYPE 0x8d /* GDB debugger specific, no Response required */
+#define NXT_GDBMSG_TELEGRAMTYPE 0x8d /* GDB debugger specific, no Response required */
-#define USB_GDBMSG_START 3 /* Offset into USB Telegram buffer */
+#define NXT_GDBMSG_START 3 /* Offset into USB Telegram buffer */
#define MSG_NUMSEGMENTS 3 /* For packet transfers */
-#define MSG_SEGMENTSIZE (USB_BUFSIZE - USB_GDBMSG_START) /* 61 bytes per segment */
+#define MSG_SEGMENTSIZE (USB_BUFSIZE - NXT_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_IN_OVERHEADLEN 5 /* For calculating max message data length (exclude ASCIIZ char) */