From 4d93e6ac4eecf0f5fe995be1729b71686c394568 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Fri, 27 May 2011 15:51:42 +0800 Subject: added nxos configuration routine to handle debug mode switching --- Debugger/debug_stub.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Debugger/debug_stub.h') 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 -- cgit v1.2.3