projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed broken config in Makefile.
[goodfet]
/
firmware
/
include
/
jtagarm7.h
diff --git
a/firmware/include/jtagarm7.h
b/firmware/include/jtagarm7.h
index
921deea
..
41ba258
100644
(file)
--- a/
firmware/include/jtagarm7.h
+++ b/
firmware/include/jtagarm7.h
@@
-2,17
+2,33
@@
\brief JTAG handler functions for the ARM7TDMI family of processors
*/
\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
#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;
-
+// JTAG TAP states
+#define Exit2_DR 0x0
+#define Exit_DR 0x1
+#define Shift_DR 0x2
+#define Pause_DR 0x3
+#define Select_IR 0x4
+#define Update_DR 0x5
+#define Capture_DR 0x6
+#define Select_DR 0x7
+#define Exit2_IR 0x8
+#define Exit_IR 0x9
+#define Shift_IR 0xa
+#define Pause_IR 0xb
+#define RunTest_Idle 0xc
+#define Update_IR 0xd
+#define Capture_IR 0xe
+#define Test_Reset 0xf
// JTAGARM7 Commands
// JTAGARM7 Commands
@@
-86,7
+102,6
@@
The least significant bit of the instruction register is scanned in and scanned
//JTAGARM7TDMI commands
//JTAGARM7TDMI commands
-#define JTAGARM7_RESETTARGET 0x86
#define JTAGARM7_GET_REGISTER 0x87
#define JTAGARM7_SET_REGISTER 0x88
#define JTAGARM7_DEBUG_INSTR 0x89
#define JTAGARM7_GET_REGISTER 0x87
#define JTAGARM7_SET_REGISTER 0x88
#define JTAGARM7_DEBUG_INSTR 0x89
@@
-142,3
+157,7
@@
The least significant bit of the instruction register is scanned in and scanned
#define JTAG_ARM7TDMI_DBG_cgenL 8
#define JTAG_ARM7TDMI_DBG_TBIT 16
#define JTAG_ARM7TDMI_DBG_cgenL 8
#define JTAG_ARM7TDMI_DBG_TBIT 16
+extern app_t const jtagarm7_app;
+
+#endif // JTAGARM7_H
+