Go to file
zwelch b11a5b07c6 Submitted by Magnus Lundin <lundin@mlu.mine.nu>:
Updates to the J-Link interface driver to support more device versions:
- Add capability detection:
  - if capable, detect protocol version; otherwise, assume v2 protocol.
  - if capable, detect buffer size; otherwise, assume minimal.
- Disable command result queries for devices using v2 protocol.
- Defined and use JTAG2 command with v2 protocol; JTAG3 is v3 protocol.
- Add TCL command to allow explicit setting of J-Link protocol version.

With approval, I revised the patch to make the following changes:
- add static keywords to new jlink-specific variables
- factor calculation of major_version to be more readable
- remove braces around simple one-line statements in if/else clauses
- remove (rather than #if 0) duplicate reset code; it is in SVN
- use &function to be clearer when passing function pointers
- add symbols for EMU_CMD_GET_CAPS bits; do not hard-code constants!
- almost renamed jlink_handle_jlink_hw_jtag_command  (seriously?!?!)
  - rewrote that function using a switch statement.
  - made version request processing easier to understand and modify
- improve alternate endpoint detection:
  - make code easier to read by using temporary variables
  - eliminate extra level of indentation and redundant logging
- use ternary conditional to select JTAG2 or JTAG3 command
- reverse version test in jlink_usb_message to reduce indentation
  - this had the biggest effect in cleaning up this patch
- use C99's ability to declare new/changed variables with less scope
- add spaces around binary operators in new/changed code
- revert other superfluous whitespace/comment style changes


git-svn-id: svn://svn.berlios.de/openocd/trunk@1889 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-05-23 03:42:13 +00:00
contrib Uwe Hermann <uwe@hermann-uwe.de>: Make ICEbear look like other targets 2009-04-30 21:04:34 +00:00
doc Submitted by David Brownell <david-b@pacbell.net>: 2009-05-22 02:25:18 +00:00
ecosflash deleted obsolete stuff. 2008-04-22 06:44:05 +00:00
src Submitted by Magnus Lundin <lundin@mlu.mine.nu>: 2009-05-23 03:42:13 +00:00
testing stm32 profiling wip 2009-05-08 13:30:45 +00:00
tools Add 'docs' and 'doxygen' targets to top-level Makefile. 2009-05-20 20:52:14 +00:00
AUTHORS Michael Schwingen <rincewind@discworld.dascon.de> add non-CFI SST flashs 2009-04-21 05:31:18 +00:00
BUGS Update BUGS file, adapting its content for the doxygen manual. 2009-05-18 20:22:55 +00:00
COPYING - prepare OpenOCD for branching, created ./trunk/ 2006-06-02 10:36:31 +00:00
ChangeLog retired 2008-03-06 17:11:35 +00:00
Doxyfile Change doxygen configuration to show code comments in documentation. 2009-05-23 00:51:13 +00:00
INSTALL - fix typo's 2008-09-22 20:58:57 +00:00
Makefile.am Add 'docs' and 'doxygen' targets to top-level Makefile. 2009-05-20 20:52:14 +00:00
NEWS - fix typo's 2008-09-22 20:58:57 +00:00
NEWTAPS - fix incorrect svn props from last commit 2008-12-01 15:52:56 +00:00
PATCHES Author: David Brownell <david-b@pacbell.net> 2009-05-21 05:46:29 +00:00
README Test of commit email from duane 2008-12-06 13:13:02 +00:00
TODO removed solved mem2array problem. 2009-05-18 19:33:00 +00:00
bootstrap Fix bootstrap typo noticed by Edgar Grimberg <edgar.grimberg@zylin.com>. 2009-05-13 23:37:29 +00:00
configure.in Update configure script test for net/if.h to work on MacOS. 2009-05-13 23:38:38 +00:00
guess-rev.sh - guess-rev.sh now works as expected when build_dir is not the same as src_dir 2009-02-13 09:56:51 +00:00
uncrustify.cfg Add uncrustify config file and helper script 2009-02-03 04:27:48 +00:00

README

openocd.texi is the authoritative source of OpenOCD documentation