summaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Debugger/debug_stub.h
diff options
context:
space:
mode:
Diffstat (limited to 'AT91SAM7S256/Debugger/debug_stub.h')
-rw-r--r--AT91SAM7S256/Debugger/debug_stub.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/AT91SAM7S256/Debugger/debug_stub.h b/AT91SAM7S256/Debugger/debug_stub.h
index 9a120e5..7849d56 100644
--- a/AT91SAM7S256/Debugger/debug_stub.h
+++ b/AT91SAM7S256/Debugger/debug_stub.h
@@ -39,6 +39,7 @@
#define MSGBUF_ERRCHAR 'E'
#define MSGBUF_SIGCHAR 'S'
#define MSGBUF_CPSRREG '!'
+#define MSGBUF_SETCHAR '='
#define MSGBUF_CMDINDEX_OUTOFRANGE_VAL -1
/*@}*/
@@ -75,6 +76,17 @@
#define HLFWRD1 0xFFFF0000 /* Halfword 0 word(31:16) */
/*@}*/
+/** @name CPSR Bit Definitions.
+ *
+ * Various Bit definitions for accessing the CPSR register.
+ */
+/*@{*/
+#define CPSR_THUMB 0x00000020
+#define CPSR_FIQ 0x00000040
+#define CPSR_IRQ 0x00000080
+
+/*@}*/
+
/** @name BKPT suppport constants
*
* ARM and Thumb Breakpoint Instructions.
@@ -111,7 +123,8 @@ ENUM_END(dbg_state_t)
* The enums must be consecutive, starting from 1
*/
ENUM_BEGIN
-ENUM_VALASSIGN(MSG_ERRCHKSUM, 1) /**< Checksum Error. */
+ENUM_VALASSIGN(MSG_ERRIMPL, 0) /**< Stub (not implemented) Error. */
+ENUM_VAL(MSG_ERRCHKSUM) /**< Checksum Error. */
ENUM_VAL(MSG_ERRFORMAT) /**< Message Format Error. */
ENUM_VAL(MSG_UNKNOWNCMD) /**< Unrecognized Command Error. */
ENUM_VAL(MSG_UNKNOWNPARAM) /**< Unrecognized Parameter Error. */