summaryrefslogtreecommitdiff
path: root/Debugger/debug_stub.h
diff options
context:
space:
mode:
authorTC Wan2010-12-14 12:22:40 +0800
committerTC Wan2010-12-14 12:22:40 +0800
commit6707b07963315e3afad721c6f0fe30f0ba2f19bc (patch)
treea076cefc8470696fd5ff6b029e5cafb08be108c4 /Debugger/debug_stub.h
parentbc6e53a15ec74e9f1c9e54227a21064cb8565954 (diff)
fixed compilation errors in nxos, added condition code parser table
Fixed compilation error in nxos Work in Progress: added condition code parser table, instruction parser table
Diffstat (limited to 'Debugger/debug_stub.h')
-rw-r--r--Debugger/debug_stub.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/Debugger/debug_stub.h b/Debugger/debug_stub.h
index 897c2b8..2aa6669 100644
--- a/Debugger/debug_stub.h
+++ b/Debugger/debug_stub.h
@@ -29,7 +29,17 @@
* Debug Message Values
*/
/*@{*/
-#define MSGBUF_SIZE 256 /* Debug Message Buffer Size */
+
+/*
+ * USB Buffer Sizes: Ctrl Intr Iso Bulk
+ * Full Speed Device 64 64 1023 64
+ * High Speed Device 64 1024 1024 512
+ */
+
+#define USB_BUFSIZE 64
+#define USB_NUMDATAPKTS 3 /* For packet transfers */
+
+#define MSGBUF_SIZE (USB_BUFSIZE*USB_NUMDATAPKTS) /* Debug Message Buffer Size, 64 x 3 = 192 chars = ~90 bytes */
#define MSGBUF_STARTCHAR '$'
#define MSGBUF_ACKCHAR '+'
#define MSGBUF_NAKCHAR '-'
@@ -148,12 +158,12 @@ FUNCDEF void dbg__bkpt_handler(void);
/** dbg_breakpoint_arm.
* Equivalent to GDB breakpoint() routine for ARM code
*/
-FUNCDEF inline void dbg_breakpoint_arm(void) { asm volatile (".word BKPT32_INSTR | BKPT32_MANUAL_BKPT") }
+/* FUNCDEF */ inline void dbg_breakpoint_arm(void) { asm volatile (".word BKPT32_INSTR | BKPT32_MANUAL_BKPT") }
/** dbg_breakpoint_thumb.
* Equivalent to GDB breakpoint() routine for Thumb code
*/
-FUNCDEF inline void dbg_breakpoint_thumb(void) { asm volatile (".hword BKPT16_INSTR | BKPT16_MANUAL_BKPT") }
+/* FUNCDEF */ inline void dbg_breakpoint_thumb(void) { asm volatile (".hword BKPT16_INSTR | BKPT16_MANUAL_BKPT") }
/*@}*/