aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/jtag.h
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-01 23:01:24 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-01 23:01:24 +0000
commita88871bc6ad13561d9e60fbd9152b8f0c05329b1 (patch)
tree1d6e0db86dc55b47c80ad5766c58d6e2a94b163d /src/jtag/jtag.h
parent35082f788b457b8f5fde9943d9b4246592f29c1d (diff)
Encapsulate JTAG Cable API and interface structure, plan for new header file.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1984 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r--src/jtag/jtag.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h
index 81d8748b..83ce28af 100644
--- a/src/jtag/jtag.h
+++ b/src/jtag/jtag.h
@@ -105,6 +105,8 @@ typedef struct tap_transition_s
//extern tap_transition_t tap_transitions[16]; /* describe the TAP state diagram */
+#ifdef INCLUDE_JTAG_INTERFACE_H
+
/*-----<Cable Helper API>-------------------------------------------*/
/* The "Cable Helper API" is what the cable drivers can use to help implement
@@ -254,6 +256,8 @@ static inline tap_state_t jtag_debug_state_machine(const void *tms_buf,
/*-----</Cable Helper API>------------------------------------------*/
+#endif // INCLUDE_JTAG_INTERFACE_H
+
extern tap_state_t cmd_queue_end_state; /* finish DR scans in dr_end_state */
extern tap_state_t cmd_queue_cur_state; /* current TAP state */
@@ -428,6 +432,8 @@ enum reset_line_mode {
LINE_PUSH_PULL = 0x1,
};
+#ifdef INCLUDE_JTAG_INTERFACE_H
+
typedef struct jtag_interface_s
{
char* name;
@@ -477,6 +483,8 @@ typedef struct jtag_interface_s
int (*srst_asserted)(int* srst_asserted);
} jtag_interface_t;
+#endif // INCLUDE_JTAG_INTERFACE_H
+
enum jtag_event {
JTAG_TRST_ASSERTED
};