aboutsummaryrefslogtreecommitdiff
path: root/Debugger/debug_stub.h
diff options
context:
space:
mode:
authorTC Wan2011-01-11 17:00:35 +0800
committerTC Wan2011-01-11 17:00:35 +0800
commitfb20390fe4db9965f7df19db847a5838a77aeab1 (patch)
treebf15af3f3e51ac3c985b2c99b5ca8c470a891c83 /Debugger/debug_stub.h
parent6a0ffb26696a5833f5a086f683749209d074ab6e (diff)
implemented segment reassembly
Diffstat (limited to 'Debugger/debug_stub.h')
-rw-r--r--Debugger/debug_stub.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Debugger/debug_stub.h b/Debugger/debug_stub.h
index 8e51cfd..0cd342c 100644
--- a/Debugger/debug_stub.h
+++ b/Debugger/debug_stub.h
@@ -42,14 +42,14 @@
#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_STARTCHAR '$'
#define MSGBUF_ACKCHAR '+'