bb1a1ddb54
jtag_add_end_state() now returns the value of the global variable and does 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.
oharboe
2009-06-04 07:05:22 +00:00
9ab49135c6
JTAG_TRST_ASSERTED event cleanup. More clear where and when it is invoked and some duplicate(harmless) invocations avoided.
oharboe
2009-06-04 06:56:22 +00:00
4ecf2c7dd8
Move the JTAG cable interface API implementation - 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.
zwelch
2009-06-03 00:45:21 +00:00
f7d011a955
Add missed accessor for checking the current TMS table.
zwelch
2009-06-03 00:33:22 +00:00
f0b1b206cd
Split and simplify handle_tms_sequence_command for further factoring.
zwelch
2009-06-03 00:24:21 +00:00
2c69be13ea
Make tap_state_by_name available in new JTAG interface API header.
zwelch
2009-06-03 00:17:42 +00:00
def4ed3b2a
Add private src/jtag/interface.h for use by JTAG interface drivers: - Move the jtag_interface structure definition. - Move the Cable API declarations. - Add new header file to automake input.
zwelch
2009-06-02 23:59:13 +00:00
84d88ef9d7
Finish removing '#ifdef HAVE_JTAG_MINIDRIVER_H' from jtag.h: - 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.
zwelch
2009-06-02 23:21:18 +00:00
a546729609
Add header file for JTAG minidriver: - 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.
zwelch
2009-06-02 23:15:12 +00:00
7dc29156fe
- change signature for adi_jtag_dp_scan and adi_jtag_dp_scan_u32 to use swjdp_common_t *swjdp instead of arm_jtag_t *jtag_info - change SWJDP_IR/DR_APACC to DAP_IR/DR_APACC to conform with ARM_ADI docs. - add swjdp->memaccess_tck field and code for extra tck clocks before accessing memory bus - Set default memaccess value to 8 for Cortex-M3. - Add dap memaccess command. - document all armv7 dap cmds. - Original patch submitted by Magnus Lundin [lundin@mlu.mine.nu].
ntfreak
2009-06-02 21:06:12 +00:00
88b5c6da2a
- hack added to fix a issue with v5/6 jlink 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
ntfreak
2009-06-02 16:07:31 +00:00
339dc0bcd0
remove unecessary #ifdef as file is only built when minidriver is enabled.
oharboe
2009-06-02 13:37:06 +00:00
b7a133bd48
some trivial minidriver fixes
oharboe
2009-06-02 10:09:53 +00:00
cd5e09303c
more missing eCos types
oharboe
2009-06-02 10:07:47 +00:00
34b6fc3ce4
Only include jtag_driver.c in the build when minidriver is not in use.
zwelch
2009-06-02 08:29:03 +00:00
1d230b88d2
Move interface_jtag_add_scan_check_alloc implementations to their respective implementation files.
zwelch
2009-06-02 08:04:21 +00:00
6625e926fd
Add high-speed device support in FT2232 driver: - 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>.
zwelch
2009-06-02 07:51:16 +00:00
8dab0ecf23
Remove unused code, TAP_INVALID is never passed to drivers.
oharboe
2009-06-02 07:21:44 +00:00
a372074d21
Continue clean-up of JTAG driver interface: - 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.
zwelch
2009-06-02 07:05:54 +00:00
4a70eeffb0
More JTAG interface driver cleanup: - Moves references to global jtag interface to default core implementation. - Missed this reference in the earlier "pointless" patch. Mea culpa.
zwelch
2009-06-02 06:49:53 +00:00
c10d4d9a00
More JTAG interface driver cleanup: - Add jtag_callback_queue_reset() to reset the callback queue. - Make interface_jtag_execute_queue() use new helper function.
zwelch
2009-06-02 06:33:19 +00:00
e733ac36bf
More JTAG interface driver cleanup: - Make interface_jtag_execute_queue call new helper function. - Add default_interface_jtag_execute_queue to wrap jtag interface access.
zwelch
2009-06-02 06:21:49 +00:00
6ef5a622af
Clean up jtag command queue handling: - Rename last_command_pointer as next_command_pointer, because this variable stores the address where jtag_queue_command() will store a command pointer. - Make that variable static, since it is only used internally in jtag.c. - Remove superfluous accessor for that now-static variable. - Deobfuscate use of variables in jtag_command_queue. - Add jtag_command_queue_reset helper function. - Use it in interface_jtag_execute_queue.
zwelch
2009-06-02 05:47:00 +00:00
76bd16e9e3
Encapsulate JTAG command interfaces for moving to jtag_interface.h.
zwelch
2009-06-02 04:55:05 +00:00
d0a6db31a3
Remove the useless invalidstruct from jtag.h.
zwelch
2009-06-02 04:31:49 +00:00
deed7fb56c
Start clean-up of JTAG driver interface: - Factor jtag_add_scan_check to call new jtag_add_scan_check_alloc helper. - Use conditional logic to define two versions of the helper. - These helpers will be moved to other files in future patches.
zwelch
2009-06-02 03:38:50 +00:00
74df79d4d8
Final step in isolating target_type_s structure: - Move definition of 'struct target_type_s' into new 'target_type.h' file. - Forward delclaration remains in target.h, with comment pointing to new file. - Replaces #define with #include in source files.
zwelch
2009-05-31 12:38:28 +00:00
e8e0af3956
Whitespace-only updates to automake input files: - use continuations to break long lines of variable assignments - makes these variables more patch-friendly and conform to style guide
zwelch
2009-05-31 12:10:57 +00:00
818aa27a9d
First step in hiding target_type_s from public interface: - Add DEFINE_TARGET_TYPE_S symbol in files that need it defined. - Forward declare 'struct target_type_s' only, unless that symbol is defined.
zwelch
2009-05-31 11:32:28 +00:00
4deb42ed00
Add target_examine_one wrapper: - replaces all calls to target->type->examine.
zwelch
2009-05-31 11:32:10 +00:00
d00ac17e8e
Add target breakpoint and watchpoint wrapper: - replaces all calls to target->type->{add,remove}_{break,watch}point.
zwelch
2009-05-31 11:31:52 +00:00
0de78ed02c
Add target_get_name wrapper: - replaces all accesses to target->type->name. - add documentation in target_s to warn not to access field directly.
zwelch
2009-05-31 11:31:27 +00:00
17fa4de854
Add target_step wrapper: - replaces all calls to target->type->step.
zwelch
2009-05-31 11:31:11 +00:00
df4cf0615f
Add target_get_gdb_reg_list wrapper: - replaces all calls to target->type->get_gdb_reg_list. - add documentation in target_s to warn not to invoke callback directly.
zwelch
2009-05-31 11:30:59 +00:00
11edf22776
Add target_bulk_write_memory wrapper: - replaces all calls to target->type->bulk_write_memory. - add documentation in target_s to warn not to invoke callback directly.
zwelch
2009-05-31 09:39:04 +00:00
9cb3af610a
Add wrappers for target->type->examined: - replace all checks of target->type->examined with target_was_examined(). - replace all setting of target->type->examined with target_set_examined(). - replace clearing of target->type->examined with target_reset_examined(). - add documentation in target_s to warn not to access field directly.
zwelch
2009-05-31 09:38:43 +00:00
fbe8cf72a5
Add target_run_algorithm wrapper: - replaces all calls to target->type->run_algorithm. - add documentation in target_s to warn not to invoke callback directly.
zwelch
2009-05-31 09:38:20 +00:00
95e13054ca
Add target_write_memory wrapper: - replaces all calls to target->type->write_memory. - add documentation in target_s to warn not to invoke callback directly.
zwelch
2009-05-31 09:37:57 +00:00
b6db182c00
Add target_read_memory wrapper: - replaces all calls to target->type->read_memory. - add documentation in target_s to warn not to invoke callback directly.
zwelch
2009-05-31 09:37:35 +00:00
6785193118
Simplify the handle_md_command routine in target.c: - fix buffer overrun in mdw; final '\0' would overflow the output buffer. - return ERROR_COMMAND_SYNTAX_ERROR instead of ERROR_OK if: - less than one argument is provided - the command is called with a name other than mdb, mdh, or mdw. - factor all command output into new handle_md_output function
zwelch
2009-05-31 06:00:28 +00:00
55f21192b0
Make nvp_target_event static; remove its external declaration.
zwelch
2009-05-31 04:58:51 +00:00
12df0f0090
Make target_buffer_get_uXX interfaces work with constant buffers.
zwelch
2009-05-31 02:18:26 +00:00
cc639cc44c
Add new JTAG boundary scan primer, with links to BSDL information.
zwelch
2009-05-31 00:49:03 +00:00
58e31916de
Eliminate duplicated code in the handle_mw_command memory write loop. - wordsize will always be 1, 2, or 4 due to preceeding switch statement. - move call to keep_alive after successful writes, not upon failures
zwelch
2009-05-30 23:57:30 +00:00
335fee3f36
Encapsulate the global "jtag" jtag_interface pointer: - Add jtag_interface_quit, factored from exit_handler() in openocd.c. - Remove its extern declaration. - Add static keyword to its definition.
zwelch
2009-05-30 22:23:12 +00:00
ebcde562d9
Remove error_handler_t type definition; it was unused in the tree.
zwelch
2009-05-29 05:50:01 +00:00
188cf8d960
Add documentation to flash.h: - provides low-level information about each flash API interface, - gives driver authors some documentation about the driver interface, - updated extensively from the original patch provided by Duane Ellis.
zwelch
2009-05-29 04:00:51 +00:00