0c3e5b5069
Cleanup jtag_tap_by_abs_position: - Remove unused orig_n local variable. - Merge variable declaration with first use. - Update code to use current style guidelines.
zwelch
2009-06-09 02:23:44 +00:00
009034f56c
Simplify jtag_tap_by_jim_object: - Merge declarations of temporary variables with first use. - Restructure logic to simplify conditional logic.
zwelch
2009-06-09 02:23:35 +00:00
9f185eef7d
Simplify and fix bug in jtag_tap_by_string: - Bug fix: Use unsigned type and strtoul when parsing for position number. - Simplify logic by returning directly when a tap is found by name. - Reduce scope: declare temporary variables with first use. - Bring code up to current style guidelines.
zwelch
2009-06-09 02:23:27 +00:00
1c74d0e3a4
Allow jtag_tap_add to be called from other JTAG code modules.
zwelch
2009-06-09 02:23:16 +00:00
ff85ad7c12
Change jtag_add_pathmove to set jtag_error rather than call exit(): - Add new error codes to encode the possible failure conditions. - Add documentation to describe the routine's possible error codes.
zwelch
2009-06-09 01:16:35 +00:00
731d2d0cb6
Reduce scope or eliminate temporary variables in jtag_add_statemove: - Change types of tms_bits and tms_count to unsigned, eliminates a cast. - Use moves[] only if needed; a single move can use goal_state directly. - Declare loop induction variable inside its control statement. - Remove retval in favor of direct returns.
zwelch
2009-06-09 01:16:19 +00:00
b3121aac76
Move documentation in jtag_add_statemove body to Doxygen block.
zwelch
2009-06-09 01:16:13 +00:00
ec274b2707
Revert changes from r2134 that snuck into the commit. Mea culpa.
zwelch
2009-06-09 01:01:13 +00:00
f0bb29b9d9
Fix eol-style on guess-rev.sh
kc8apf
2009-06-08 22:18:16 +00:00
3245a0cd5f
update zy1000 to latest minidriver work
oharboe
2009-06-08 14:13:32 +00:00
76d9c3d5b8
Zach Welch wrote a fix for configure problems under Cygwin. ltmain.sh is added to svn ignore
oharboe
2009-06-08 13:57:13 +00:00
6dc00b00a4
Add documentation for new interface_list command to user guide.
zwelch
2009-06-08 13:16:57 +00:00
51d158c410
Factor interface list to its own command: - Add handle_interface_list_command, used by handle_interface_command. - Display output of new list to command console. - Change first index of displayed drivers to 1; it's only cosmetic.
zwelch
2009-06-08 13:12:17 +00:00
7bcd2e6854
Cleanup and simplify handle_interface_command: - Reduce indent: invert logic of strcmp test. - Reduce scope: declare variables upon first use in loops. - Reduce unsaid: compare end of table with NULL. - Remove superfluous braces around blocks with one statment. - Improve language that introduces the list of built-in drivers.
zwelch
2009-06-08 13:12:12 +00:00
8290a05c2b
Simplify jtag_add_sleep: - Add todo for removing keep_alive: is this a layering violation? - Use jtag_set_error instead of accessing jtag_error directly. - Remove superfluous retval temporary variable and empty return.
zwelch
2009-06-08 10:58:28 +00:00
6f4de887f7
Simplify jtag_add_clocks: - Use jtag_set_error instead of accessing jtag_error directly. - Improve error language and whitespace.
zwelch
2009-06-08 10:57:51 +00:00
d76c63431f
Simplify jtag_add_runtest: - Use jtag_set_error instead of accessing jtag_error directly. - Eliminate superfluous comment and temporary variable.
zwelch
2009-06-08 10:57:39 +00:00
521d8d5bfa
Simplify jtag_add_pathmove: - Use jtag_set_error instead of accessing jtag_error directly. - Eliminate superfluous retval temporary variable. - Reduce scope of loop induction variable. - Wrap to fit within 80 columns.
zwelch
2009-06-08 10:57:18 +00:00
8a89899860
Simplify jtag_add_tlr: - Use jtag_set_error instead of accessing jtag_error directly. - Eliminate superfluous temporary variable.
zwelch
2009-06-08 10:57:10 +00:00
d3d0f662ef
Simplify jtag_add_plain_dr_scan: - Use jtag_set_error instead of accessing jtag_error directly. - Wrap function arguments to fit everything in 80 columns. - Move retval variable to location of first use.
zwelch
2009-06-08 10:56:49 +00:00
1497e6699a
Simplify jtag_add_dr_scan: - Use jtag_set_error instead of accessing jtag_error directly. - Wrap function arguments to fit everything in 80 columns. - Move retval variable to location of first use.
zwelch
2009-06-08 10:56:36 +00:00
e3b1937aaf
Simplify jtag_add_plain_ir_scan: - Use jtag_set_error instead of accessing jtag_error directly. - Wrap function arguments to fit everything in 80 columns.
zwelch
2009-06-08 10:56:25 +00:00
9bdbe70ceb
Simplify jtag_add_ir_scan_noverify: - Use jtag_set_error instead of accessing jtag_error directly. - Wrap and rename function arguments to fit everything in 80 columns. - Move retval variable to location of first use.
zwelch
2009-06-08 10:56:18 +00:00
4cff9dc0c1
Simplify jtag_execute_queue: - Add static inline jtag_error_clear helper to return and clear jtag_error. - Use new helper to shrink body of function to two lines.
zwelch
2009-06-08 10:56:07 +00:00
f418fcbff0
Simplify jtag_execute_queue_noclear: - Replace jtag_error logic with equivalent call to jtag_set_error. - Remove superfluous comment and temporary return variable.
zwelch
2009-06-08 10:55:54 +00:00
791701165c
Cleanup handle_runtest_command: - Make command argument require exactly one argument; do not allow extras. - Remove superfluous whitespace at end of function. - Wrap function arguments to fit in 80 columns.
zwelch
2009-06-08 10:55:44 +00:00
5c9221ce61
Clean up handle_jtag_reset_command: - Make command require exactly two arguments; do not allow more than two. - Move temporary variable declarations closer to point of first use. - Remove superfluous braces around single statments. - Wrap to 80 column width.
zwelch
2009-06-08 10:55:36 +00:00
c75ef1cd37
Extend handle_jtag_n{s,t}rst_delay_command routines: - Add support to display the reset delays too, like the other commands. - Always show the values, so users can see if they are being redundant.
zwelch
2009-06-08 10:55:24 +00:00
ae0ba6f355
Add accessors to retrieve values of jtag_n{s,t}rst_delay variables.
zwelch
2009-06-08 10:55:13 +00:00
d7c4e1ec93
Update JTAG reset delay command handlers: - Fixes for error handling: - Return a syntax error instead of calling exit(-1). - Return error when more than one argument is provided too. - Remove useless braces and indent after the if/return statements. - Wrap function arguments to fit in 80 columns.
zwelch
2009-06-08 10:54:52 +00:00
47a1185d5d
Cleanup the handle_jtag_khz_command routine: - Separate retval assignments from logical tests. - Simplify logical tests.
zwelch
2009-06-08 10:54:41 +00:00
620ecedf42
Simplify logic in handle_jtag_speed_command.
zwelch
2009-06-08 10:54:06 +00:00
e468797e41
David Brownell <david-b@pacbell.net> Bugfix: $target_name cget/configure -work-area-backup commands should return the "is it backed up?" flag, not the work area size.
oharboe
2009-06-08 06:18:13 +00:00
a221892f60
Adjust whitespace in configure script: use two spaces for indent.
zwelch
2009-06-08 04:35:19 +00:00
5ee0379be1
Reorder configure script macros: - Check for a compiler before looking for libraries or header files. - Initialize automake before calling other AM_ macros. - Disable libtool shared libraries by default. - Remove checks for unused C++, Fortran, and Java compilers. - Remove redundant AC_CANONICAL_HOST; called by AC_PROG_LIBTOOL.
zwelch
2009-06-08 04:35:05 +00:00
35f7c4e478
Rework parallel port configure script option handling: - Move AC_ARG_ENABLE for secondary parallel port options: - These macros cause their configure options to appear unconditionally, so they should not be placed inside conditional logic. - Groups them with primary parallel port driver option. - Update these options to show '-' instead of '_'; both still work. - Update command help text to show host architecture/OS requirements. - Display a warning when these options have been provided and the configure script will ignore the setting that the user specified.
zwelch
2009-06-08 04:34:45 +00:00
1419a72892
Move minidummy source file, as was supposed to happen in last commit.
zwelch
2009-06-08 01:14:04 +00:00
f84c78a2e1
Finish off the dummy minidriver integration: - Try to disambiguates minidriver options from "standard" driver options. - Make minidummy symbols more explict about being a minidriver. - Move minidummy.c into minidummy directory to put it with its header.
zwelch
2009-06-08 00:42:15 +00:00
b770ad5b19
Fix reference warning in JTAG primer, add another external reference.
zwelch
2009-06-07 23:49:14 +00:00
b90d7d12f1
Set svn:eol-style properties on new minidummy driver files.
zwelch
2009-06-07 18:39:11 +00:00
3363851781
Fix regressions in previous series of cleanp, caused by r2092.
zwelch
2009-06-07 18:38:13 +00:00
14d6605cc9
minidriver build test driver "minidriver"
oharboe
2009-06-07 13:55:29 +00:00
7dd8754575
Factoring of jtag_examine_chain for maintainability: - Improve variable type: change device_count to unsigned. - Improves jtag_tap_count_enabled() API too (now returns unsigned).
zwelch
2009-06-07 05:24:27 +00:00
b550f70100
Factoring of jtag_examine_chain for maintainability: - Limit scope: move tap and bit_count variables to point of first use.
zwelch
2009-06-07 05:24:20 +00:00
63c4848d11
Factoring of jtag_examine_chain for maintainability: - Factor TAP ID matching into new helper function. - Simplifies the main jtag_examine_chain loop logic considerably.
zwelch
2009-06-07 05:24:12 +00:00
f106382055
Factoring of jtag_examine_chain for maintainability: - Minor whitespace and style cleanups in body of jtag_examine_chain.
zwelch
2009-06-07 05:24:03 +00:00
9eefd4d7e5
Factoring of jtag_examine_chain for maintainability: - Add helper to check for the terminating ID during jtag_examine_chain.
zwelch
2009-06-07 05:23:50 +00:00
d8421f2766
Factoring of jtag_examine_chain for maintainability: - Factor end-of-chain verfication into new helper routine. - Change 'unexpected' local variable name to 'triggered' and type to bool.
zwelch
2009-06-07 05:23:40 +00:00
feb865f9ee
Factoring of jtag_examine_chain for maintainability: - Factor output of accepted/incorrect/expected TAP IDs into static helper.
zwelch
2009-06-07 05:23:30 +00:00
c318068839
Factoring of jtag_examine_chain for maintainability: - Factor initial chain examination check into new static helper.
zwelch
2009-06-07 05:23:13 +00:00
90dbfcea7d
Factoring of jtag_examine_chain for maintainability: - Factor JTAG chain examination into static helper function.
zwelch
2009-06-07 05:23:03 +00:00
861f52ff16
Factoring of jtag_examine_chain for maintainability: - Reduce indent: invert logical test of expected_id count.
zwelch
2009-06-07 05:22:53 +00:00
15ae1ac678
Factoring of jtag_examine_chain for maintainability: - Reduce indent: invert logic test for unexpected TAP (no IDs).
zwelch
2009-06-07 05:22:42 +00:00
32350a5006
Factoring of jtag_examine_chain for maintainability: - Reduce indent: invert logic test for tap in jtag_examine_chain.
zwelch
2009-06-07 05:22:34 +00:00
401d6472cc
Factoring of jtag_examine_chain for maintainability: - Move definition of maximum JTAG chain size closer to its only uses.
zwelch
2009-06-07 05:22:25 +00:00
0b08845e3f
Factoring of jtag_examine_chain for maintainability: - Move JTAG EXTRACT macros out from the middle of jtag_examine_chain.
zwelch
2009-06-07 05:22:09 +00:00
43e1ed244f
Clean up handle_endstate_command(): - Merge declaration of state with first use. - Unindent and remove unnecessary 'else' block.
zwelch
2009-06-07 03:48:21 +00:00
aee65603ee
remove hacks no longer required to build OpenOCD w/eCos
oharboe
2009-06-05 06:43:09 +00:00
af838b03a0
remove unused include file: strings.h
oharboe
2009-06-05 06:42:20 +00:00
3b3a5b642c
remove unused include file: inttypes.h
oharboe
2009-06-05 06:41:54 +00:00
a49faa206d
remove unused include file: inttypes.h
oharboe
2009-06-05 06:37:21 +00:00
0eb5c7509d
Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_NextEnabledTap' as 'jtag_tap_next_enabled.'
zwelch
2009-06-05 00:43:43 +00:00
0d39db1109
Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_NumEnabledTaps' as 'jtag_tap_count_enabled.'
zwelch
2009-06-05 00:43:32 +00:00
92cf94295e
Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_NumTotalTaps' as 'jtag_tap_count.'
zwelch
2009-06-05 00:43:23 +00:00
7db5839608
Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_TapByJimObj' as 'jtag_tap_by_jim_obj.'
zwelch
2009-06-05 00:43:12 +00:00
689e9664b0
Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_TapByString' as 'jtag_tap_by_string.'
zwelch
2009-06-05 00:42:52 +00:00
473dc89c24
Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_TapByAbsPosition' as 'jtag_tap_by_abs_position.'
zwelch
2009-06-05 00:42:39 +00:00
05eb8d8c13
Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_TapByPosition' as 'jtag_tap_by_position.'
zwelch
2009-06-05 00:42:32 +00:00
dd89964ae0
Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_AllTaps' as 'jtag_all_taps.'
zwelch
2009-06-05 00:42:25 +00:00
eaf37cf9e8
Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_all_taps' as '__jtag_all_taps.' - Frees original symbol name to rename the accessor function.
zwelch
2009-06-05 00:42:17 +00:00
499f30f693
Add accessors for jtag_verify; use them in jim command handler.
zwelch
2009-06-05 00:06:34 +00:00
99fd479503
Add accessors for reset delays; use them in jim command handlers.
zwelch
2009-06-05 00:04:12 +00:00
d530313866
Add accessors for speed_khz; use them in jim command handler.
zwelch
2009-06-05 00:02:00 +00:00
8580c70172
Add jtag_get_flush_queue_count accessor to help future factoring.
zwelch
2009-06-04 23:52:58 +00:00
a847326216
Clean up the JTAG TAP creation handler: - 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.
zwelch
2009-06-04 23:49:52 +00:00
d3d02f4789
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.
zwelch
2009-06-04 23:26:58 +00:00
82a5f6ff3e
Change hasKHz to use bool type.
zwelch
2009-06-04 22:43:34 +00:00
01801e3f45
unbreak arm11. TAP_INVALID is used to communicate inband that a special state should be used to lower level fn's in ARM11 code.
oharboe
2009-06-04 20:05:32 +00:00
f7d3fdb195
- add support for different TAR autotincrement sizes as per ARM ADI spec. - set TAR size to 12 bits for Cortex-M3. - Original patch submitted by Magnus Lundin [lundin@mlu.mine.nu].
ntfreak
2009-06-04 13:45:50 +00:00
d861002612
Rename jtag_add_end_state to jtag_set_end_state since "add" implies that this fn has something to do with the queue, which it does not as such.
oharboe
2009-06-04 13:18:07 +00:00
f133158175
Introduce jtag_get_end_state() fn to clarify code a bit.
oharboe
2009-06-04 13:14:07 +00:00
310a9eabff
tiny bit of encapsulation of global end state. No longer expose it as a global variable.
oharboe
2009-06-04 13:05:57 +00:00
9e8dce64fc
do not modify global end state from jtag_add_xxx()
oharboe
2009-06-04 12:52:54 +00:00