aboutsummaryrefslogtreecommitdiff
path: root/Debugger/debug_stub.h
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-05-27 15:51:42 +0800
committerTat-Chee Wan (USM)2011-05-27 15:51:42 +0800
commit4d93e6ac4eecf0f5fe995be1729b71686c394568 (patch)
treee84e6e9c3c92cd812e2338af10e350e821d58374 /Debugger/debug_stub.h
parent90067098f9ba942a568afe93a2868e53c6a356c9 (diff)
added nxos configuration routine to handle debug mode switching
Diffstat (limited to 'Debugger/debug_stub.h')
-rw-r--r--Debugger/debug_stub.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Debugger/debug_stub.h b/Debugger/debug_stub.h
index 931aa68..4915007 100644
--- a/Debugger/debug_stub.h
+++ b/Debugger/debug_stub.h
@@ -55,6 +55,25 @@
*/
FUNCDEF void dbg__bkpt_init(void);
+#ifdef __NXOS__
+
+/** Communication Channel Enums
+ *
+ * Communication Channel Enums.
+ */
+ENUM_BEGIN
+ENUM_VALASSIGN(COMM_USB, 1) /**< USB Communications */
+ENUM_VAL(COMM_BT) /**< Bluetooth Communications */
+ENUM_END(comm_chan_t)
+
+/** Enable switch to Debugger Mode from NxOS operational mode
+ * Returns 0 if no mode switch needed (already in Debug mode)
+ * !0 if mode switch will happen
+ * Used by NxOS only
+ */
+FUNCDEF int nxos__handleDebug(unsigned char *msg, comm_chan_t channel, long len);
+#endif
+
#ifndef __NXOS__
/** Switch Mode to Debugger.
* Used by NXT Firmware only