aboutsummaryrefslogtreecommitdiff
path: root/Debugger/debug_stub.h
diff options
context:
space:
mode:
authorTC Wan2010-12-28 18:49:47 +0800
committerTC Wan2010-12-28 18:49:47 +0800
commitc0201887f08821d20a05bce2ec303c773a3f4b4b (patch)
tree41c11a60b35d98b6b4f4950b54e7f351b87d1f2a /Debugger/debug_stub.h
parentacdb706a74e633d847d999e9eabc973c1383ec26 (diff)
xfer between usb and message buffers
WIP: copy to and from Debugger message buffers
Diffstat (limited to 'Debugger/debug_stub.h')
-rw-r--r--Debugger/debug_stub.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Debugger/debug_stub.h b/Debugger/debug_stub.h
index e79f0de..b1815f8 100644
--- a/Debugger/debug_stub.h
+++ b/Debugger/debug_stub.h
@@ -43,6 +43,11 @@
#define USB_NXT_SEGNUM_OFFSET 2
#define USB_NXT_TELEGRAMSIZE_OFFSET 3
+#define USB_NXT_TELEGRAM_DC_RESP 0x00
+#define USB_NXT_TELEGRAM_RESP 0x02
+#define USB_NXT_COMMAND_GDB 0xF0
+#define USB_NXT_RESPONSE_GDB 0xF1
+
#define USB_GDBMSG_START 4 /* Offset into USB Telegram buffer */
#define USB_GDBMSG_CHKSUMOFFSET 4 /* to be subtracted from USB_NXT_TELEGRAMSIZE_OFFSET */