diff options
author | kc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-12-14 20:33:01 +0000 |
---|---|---|
committer | kc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-12-14 20:33:01 +0000 |
commit | 508ed7a7c69f74ed889e1b471929d9e68e5c1194 (patch) | |
tree | 548c4c33a9314cf23cfca7ea955a2427cd782f19 /src/jtag/jtag.h | |
parent | 4238dd5053f009eb409c278f60c72bf1e6a79399 (diff) |
- Update tap_state_strings to correspond to SVF state names
- Use new jtag_state_name() instead of global tap_state_strings[]
git-svn-id: svn://svn.berlios.de/openocd/trunk@1240 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r-- | src/jtag/jtag.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index 16eeef54..9a2bc423 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -50,7 +50,6 @@ typedef struct tap_transition_s enum tap_state low; } tap_transition_t; -extern char* tap_state_strings[16]; extern int tap_move_map[16]; /* map 16 TAP states to 6 stable states */ extern u8 tap_move[6][6]; /* value scanned to TMS to move from one of six stable states to another */ extern tap_transition_t tap_transitions[16]; /* describe the TAP state diagram */ @@ -529,4 +528,11 @@ static __inline__ void jtag_add_dr_out(jtag_tap_t *tap, interface_jtag_add_dr_out(tap, num_fields, num_bits, value, cmd_queue_end_state); } +/** + * Function jtag_state_name + * Returns a string suitable for display representing the JTAG tap_state + */ +const char* jtag_state_name(enum tap_state state); + + #endif /* JTAG_H */ |