summaryrefslogtreecommitdiff
path: root/src/jtag
Commit message (Collapse)AuthorAgeFilesLines
...
* Eliminate MixedCaps symbol from public JTAG TAP API:zwelch2009-06-052-7/+7
| | | | | | | | - Purely mechanical transformations to the source files. - Rename 'jtag_AllTaps' as 'jtag_all_taps.' git-svn-id: svn://svn.berlios.de/openocd/trunk@2062 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Eliminate MixedCaps symbol from public JTAG TAP API:zwelch2009-06-051-4/+4
| | | | | | | | | - Purely mechanical transformations to the source files. - Rename 'jtag_all_taps' as '__jtag_all_taps.' - Frees original symbol name to rename the accessor function. git-svn-id: svn://svn.berlios.de/openocd/trunk@2061 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Add accessors for jtag_verify; use them in jim command handler.zwelch2009-06-052-12/+22
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2060 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Add accessors for reset delays; use them in jim command handlers.zwelch2009-06-052-2/+15
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2059 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Add accessors for speed_khz; use them in jim command handler.zwelch2009-06-052-12/+21
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2058 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Add jtag_get_flush_queue_count accessor to help future factoring.zwelch2009-06-042-1/+9
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2057 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Clean up the JTAG TAP creation handler:zwelch2009-06-041-41/+45
| | | | | | | | | | - Factor jtag_tap_init() helper out of the end of jim_newtap_cmd. - Factor jtag_tap_free() helper out of the error case in jim_newtap_cmd. - Invert test to improve indentation at the end of jim_newtap_cmd. - Improve whitespace in the newly factored functions. git-svn-id: svn://svn.berlios.de/openocd/trunk@2056 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Clean up the core JTAG TAP APIs:zwelch2009-06-042-32/+34
| | | | | | | | | | - 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
* Change hasKHz to use bool type.zwelch2009-06-041-3/+3
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2054 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Add missing static keywords in JTAG source file.zwelch2009-06-041-4/+5
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2053 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Rename jtag_add_end_state to jtag_set_end_state since "add" implies thatoharboe2009-06-044-7/+7
| | | | | | this fn has something to do with the queue, which it does not as such. git-svn-id: svn://svn.berlios.de/openocd/trunk@2050 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Introduce jtag_get_end_state() fn to clarify code a bit.oharboe2009-06-043-3/+15
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2049 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* tiny bit of encapsulation of global end state. No longer expose it as a ↵oharboe2009-06-042-3/+1
| | | | | | global variable. git-svn-id: svn://svn.berlios.de/openocd/trunk@2048 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* do not modify global end state from jtag_add_xxx()oharboe2009-06-042-17/+13
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2047 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* remove unused code.oharboe2009-06-041-5/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2046 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* use assert() to catch TAP_INVALID passed to jtag_add_xxx() fn's.oharboe2009-06-041-4/+6
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2043 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* remove TAP_INVALID as argument to jtag_add_xxx() fn'soharboe2009-06-041-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2042 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* jtag_add_end_state() now returns the value of the global variable and does ↵oharboe2009-06-042-4/+16
| | | | | | not modify the global variable if passed TAP_INVALID. This patch has no effect on the current code and is just to prepare upcoming patches. git-svn-id: svn://svn.berlios.de/openocd/trunk@2041 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* JTAG_TRST_ASSERTED event cleanup. More clear where and when it is invoked ↵oharboe2009-06-042-8/+17
| | | | | | and some duplicate(harmless) invocations avoided. git-svn-id: svn://svn.berlios.de/openocd/trunk@2040 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* David Brownell <david-b@pacbell.net>:zwelch2009-06-041-259/+259
| | | | | | | | Remove pernicious whitespace from ft2232 driver; as usual, end-of-line noise, but here also much line-internal stuff. git-svn-id: svn://svn.berlios.de/openocd/trunk@2038 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* David Brownell <david-b@pacbell.net>:zwelch2009-06-041-8/+8
| | | | | | | | | | Minor cleanup of FT2232: - make Olimex glue warn about Olimex issues instead of JTAGkey issues; - make some data static+const; - don't export some internal symbols. git-svn-id: svn://svn.berlios.de/openocd/trunk@2037 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* David Brownell <david-b@pacbell.net>:zwelch2009-06-048-266/+266
| | | | | | | | Remove pernicious whitespace from src/jtag/*c files; mostly the end-of-line flavor for now, although there's more. git-svn-id: svn://svn.berlios.de/openocd/trunk@2036 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* use assert() for obscure check on illegal arguments upon trst being asserted ↵oharboe2009-06-031-6/+1
| | | | | | while commands are queued git-svn-id: svn://svn.berlios.de/openocd/trunk@2033 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* remove unused code path.oharboe2009-06-031-3/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2032 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* catchup with jtag refactoring.oharboe2009-06-031-13/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2031 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Move JTAG command handling implementation into its own source file.zwelch2009-06-033-223/+260
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2030 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Finish JTAG header file modularization; command factoring follows.zwelch2009-06-0321-24/+12
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2029 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* added missing extern to jtag_command_queue definition.oharboe2009-06-031-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2028 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Move JTAG command APIs into new jtag/commands.h header file.zwelch2009-06-033-134/+164
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2027 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Improve in-source documentation that was causing Doxygen warnings.zwelch2009-06-032-16/+20
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2025 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Enable or add doxygen comments to the public JTAG API.zwelch2009-06-031-152/+249
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2019 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Update documentationf or jtag_interface structure members.zwelch2009-06-031-15/+55
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2018 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Remove vestigal tap_transition type from public jtag API.zwelch2009-06-031-9/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2017 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Remove interface.h from public JTAG header, include it where required.zwelch2009-06-0319-16/+18
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2016 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Expose tap_state_by_name TAP helper available in public API.zwelch2009-06-032-6/+6
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2015 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Move the JTAG cable interface API implementationzwelch2009-06-034-440/+468
| | | | | | | | | - Cloned the src/jtag/jtag.c file to src/jtag/interface.c. - For each for of those files, deleted the contents of the other. - Add new source file to automake input. git-svn-id: svn://svn.berlios.de/openocd/trunk@2012 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Add missed accessor for checking the current TMS table.zwelch2009-06-032-1/+8
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2011 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Split and simplify handle_tms_sequence_command for further factoring.zwelch2009-06-032-11/+17
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2010 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Make tap_state_by_name available in new JTAG interface API header.zwelch2009-06-032-9/+4
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2009 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Add private src/jtag/interface.h for use by JTAG interface drivers:zwelch2009-06-023-207/+240
| | | | | | | | | | | - Move the jtag_interface structure definition. - Move the Cable API declarations. - Add new header file to automake input. The next patch will move the implementation to interface.c. git-svn-id: svn://svn.berlios.de/openocd/trunk@2008 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Finish removing '#ifdef HAVE_JTAG_MINIDRIVER_H' from jtag.h:zwelch2009-06-024-11/+21
| | | | | | | | | | | | | - Wraps JTAG callback API functions: - Outlines jtag_add_callback() and jtag_add_callback4(). - Adds interface_ prefix to existing in-tree driver implementation. - Declare the driver interfaces routines in miniheader.h file. This patch requires renaming the equivalent macros in out-of-tree jtag_minidriver.h implementations. git-svn-id: svn://svn.berlios.de/openocd/trunk@2007 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Add header file for JTAG minidriver:zwelch2009-06-026-102/+151
| | | | | | | | | | | | | | | - Wraps all minidriver API functions using API front-ends: - Outlines jtag_add_dr_out() and jtag_alloc_in_value32(). - Adds interface_ prefix to existing jtag_alloc_invalue_32 routines. - Re-inline these interface definitions in new header file. - Re-inline parts of the (mini)driver implementations in minidriver.h. - Replace INCLUDE_JTAG_MINIDRIVER_H with #include directives. The next patch will finish removing '#ifdef HAVE_JTAG_MINIDRIVER_H' from jtag.h. git-svn-id: svn://svn.berlios.de/openocd/trunk@2006 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - hack added to fix a issue with v5/6 jlinkntfreak2009-06-021-1/+9
| | | | | | v5/6 jlink seems to have an issue if the first tap move is not divisible by 8, so we send a TLR on first power up git-svn-id: svn://svn.berlios.de/openocd/trunk@2004 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* remove unecessary #ifdef as file is only built when minidriver is enabled.oharboe2009-06-021-3/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2003 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* some trivial minidriver fixesoharboe2009-06-023-30/+32
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2002 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Only include jtag_driver.c in the build when minidriver is not in use.zwelch2009-06-021-1/+7
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@2000 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Move interface_jtag_add_scan_check_alloc implementations to theirzwelch2009-06-024-21/+20
| | | | | | | respective implementation files. git-svn-id: svn://svn.berlios.de/openocd/trunk@1999 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Add high-speed device support in FT2232 driver:zwelch2009-06-021-1/+77
| | | | | | | | | - Initial support for FT2232H/FT4232H devices from FTDI. - Add --enable-ftd2xx-highspeed option to configure script. - Original patch submitted by Joern Kaipf <lists@joernline.de>. git-svn-id: svn://svn.berlios.de/openocd/trunk@1998 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Remove unused code, TAP_INVALID is never passed to drivers.oharboe2009-06-028-66/+27
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1997 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Continue clean-up of JTAG driver interface:zwelch2009-06-024-502/+535
| | | | | | | | | - Move all interface_jtag_* functions to jtag_driver.c. - Extern command queue routines in jtag.h (with INCLUDE_JTAG_INTERFACE_H). - Add new source file to automake inputs. git-svn-id: svn://svn.berlios.de/openocd/trunk@1996 b42882b7-edfa-0310-969c-e2dbd0fdcd60