\brief JTAG handler functions for the ARM7TDMI family of processors
*/
-#include "jtag.h"
+#ifndef JTAGARM7_H
+#define JTAGARM7_H
+#include "app.h"
+
+#define JTAGARM7 0x13
#define JTAGSTATE_ARM 0 // bit 4 on dbg status reg is low
#define JTAGSTATE_THUMB 1
-unsigned char current_chain;
-unsigned char current_dbgstate = -1;
-//unsigned char last_halt_debug_state = -1;
-//unsigned long last_halt_pc = -1;
-
-
// JTAGARM7 Commands
//! Start JTAG
//JTAGARM7TDMI commands
-#define JTAGARM7_RESETTARGET 0x86
#define JTAGARM7_GET_REGISTER 0x87
#define JTAGARM7_SET_REGISTER 0x88
#define JTAGARM7_DEBUG_INSTR 0x89
#define JTAG_ARM7TDMI_DBG_cgenL 8
#define JTAG_ARM7TDMI_DBG_TBIT 16
+extern app_t const jtagarm7_app;
+
+#endif // JTAGARM7_H
+