Clean up the core JTAG TAP APIs:
commitd3d02f478946415660f9d641283a3fefb97d6899
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 4 Jun 2009 23:26:58 +0000 (4 23:26 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 4 Jun 2009 23:26:58 +0000 (4 23:26 +0000)
tree0d0f43aa9f5744a7f1ab2578657051ece7d94110
parent82a5f6ff3e77396fc80cde29a16b320544e0bc8f
Clean up the core JTAG TAP APIs:
- Move jtag_tap_name to same location as other TAP functions; export it.
- Factor new jtag_tap_add() from jim_newtap_cmd(); appends TAP to global list.
- Move static chain position counter to global; use in jtag_NumTotalTaps().
- Use jtag_AllTaps for reading tap list, instead of accessing global directly.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2055 b42882b7-edfa-0310-969c-e2dbd0fdcd60
src/jtag/jtag.c
src/jtag/jtag.h