aboutsummaryrefslogtreecommitdiff
path: root/src/jtag
AgeCommit message (Collapse)Author
2009-12-03change #include "minidriver.h" to <jtag/minidriver.h>Zachary T Welch
Changes from the flat namespace to heirarchical one. Instead of writing: #include "minidriver.h" the following form should be used. #include <jtag/minidriver.h> The exception is from .c files in the same directory.
2009-12-03change #include "jtag.h" to <jtag/jtag.h>Zachary T Welch
Changes from the flat namespace to heirarchical one. Instead of writing: #include "jtag.h" the following form should be used. #include <jtag/jtag.h> The exception is from .c files in the same directory.
2009-12-03change #include "interface.h" to <jtag/interface.h>Zachary T Welch
Changes from the flat namespace to heirarchical one. Instead of writing: #include "interface.h" the following form should be used. #include <jtag/interface.h> The exception is from .c files in the same directory.
2009-12-03change #include "commands.h" to <jtag/commands.h>Zachary T Welch
Changes from the flat namespace to heirarchical one. Instead of writing: #include "commands.h" the following form should be used. #include <jtag/commands.h> The exception is from .c files in the same directory.
2009-12-03change #include "types.h" to <helper/types.h>Zachary T Welch
Changes from the flat namespace to heirarchical one. Instead of writing: #include "types.h" the following form should be used. #include <helper/types.h> The exception is from .c files in the same directory.
2009-12-03change #include "time_support.h" to <helper/time_support.h>Zachary T Welch
Changes from the flat namespace to heirarchical one. Instead of writing: #include "time_support.h" the following form should be used. #include <helper/time_support.h> The exception is from .c files in the same directory.
2009-12-03change #include "log.h" to <helper/log.h>Zachary T Welch
Changes from the flat namespace to heirarchical one. Instead of writing: #include "log.h" the following form should be used. #include <helper/log.h> The exception is from .c files in the same directory.
2009-12-03change #include "command.h" to <helper/command.h>Zachary T Welch
Changes from the flat namespace to heirarchical one. Instead of writing: #include "command.h" the following form should be used. #include <helper/command.h> The exception is from .c files in the same directory.
2009-12-03change #include "binarybuffer.h" to <helper/binarybuffer.h>Zachary T Welch
Changes from the flat namespace to heirarchical one. Instead of writing: #include "binarybuffer.h" the following form should be used. #include <helper/binarybuffer.h> The exception is from .c files in the same directory.
2009-12-03allow #include directives to use module nameZachary T Welch
Includes the src directory in the search path, so header files may be migrated from: #include "foo.h" to #include <module/foo.h> which is more conducive for installation.
2009-12-02remove #if HAVE_JTAG_INTERFACE_H from minidriver.hZachary T Welch
Adds two "minidriver_imp.h" files, so the right one is allowed to be "#included" by the Makefile logic.
2009-12-02move jtag drivers to src/jtag/driversZachary T Welch
Moves JTAG interface drivers to src/jtag/drivers/, Adds src/jtag/drivers/Makefile.am. Builds libocdjtagdrivers.la. Flattens the rlink driver files into the drivers/ directory, adding the 'rlink_' prefix or '.rlink' suffix as appropriate.
2009-12-02jtag: factor init into 'jtag init'Zachary T Welch
Adds 'jtag init' command handler, which can be called as part of a fine-grained 'init' process.
2009-12-01zy1000: keep up with latest changes to command handlingØyvind Harboe
Keep up with Jim Tcl interpreter creation cleanup. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-30do not extern 'interp' from command.cZachary T Welch
Adds 'interp' field to command_context, chasing the few remaining references to the global variable outside of the command module.
2009-11-30jtag: avoid using interp global variableZachary T Welch
Adds 'interp' field to jtag_tap_event_action structure to avoid using the global variable of same name.
2009-11-30zy1000: keep up with changes to command structureØyvind Harboe
Add missing COMMAND_REGISTRATION_DONE. For now the command syntax for zy1000 needs to be compatible across 0.3/0.4, the world outside OpenOCD interfaces to zy1000 using the old syntax. Post 0.4 release(0.4.1 even) I'll switch to subcommand scheme. Switch to subcommands post 0.3 lifecycle. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-28split jim_newtap_cmd into piecesZachary T Welch
Moves the ID and IR-related option parsing to static helpers, removing two levels of indent.
2009-11-28improve jtag_tap_configureZachary T Welch
Splits bulk of the jtag_tap_configure into jtag_tap_configure_event, removing three or four levels of indentation in the process. The resulting code was stylistically improved in other ways, but it should be functionally identical.
2009-11-28improve jtag_tap_handle_event indentationZachary T Welch
Use 'continue' to reduce identation levels and superfluous logic.
2009-11-28begin moving JTAG jim handlers/helpersZachary T Welch
Moves the tertiary jim handlers and required static helpers to the top of tcl.c, defining them in a new registration array that is chained in both the top-level context and under the jtag command. The top-level commands can be removed at some point in the future to reduce clutter.
2009-11-28split jim_jtag_command into multiple handlersZachary T Welch
Explodes the 'jtag' into separate command handlers, which are easier to understand and extend. Makes the code much easier to understand, though further simplifications are possible. This patch tries to minimize the noise when viewed with 'git diff -w'. Gives these commands improved built-in help and usage information.
2009-11-27zy1000: keep up with new command registration stuffØyvind Harboe
jim and classic style commands are both supported. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-27update minidummy interface driver command handlingZachary T Welch
Changes the interface definition field reference from register_commands to commands, which allows the module to compile.
2009-11-27minidummy: fix compilation errorØyvind Harboe
during refactoring a search and replace error crept in Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-25use ARRAY_SIZE macroZachary T Welch
Search and destroy lingering cases where the ARRAY_SIZE macro should be used to convey more intrinsic meaning in the OpenOCD code.
2009-11-25improve command handling examplesZachary T Welch
Removes hello and foo commands from top-level registration. Instead, the dummy interface driver and faux flash driver have been augmented to register these commands as sub-commands.
2009-11-24add jim_handler to command_registrationZachary T Welch
Adding jim_handler field to command_registration allows removing the register_jim helper. All command registrations now go through the register_command{,s}() functions.
2009-11-24remove register_callbacks from jtag interfaceZachary T Welch
Changes the jtag_interface->register_callbacks field to a list of commands to be registered. Changes callback to invocation of register_commands() with that command registration list. Removes all JTAG interface driver register_command callback functions, which the previous commits had converted into identical calls.
2009-11-24vsllink: use register_commands()Zachary T Welch
Use register_commands() with command registration array.
2009-11-24jtag: use register_commands()Zachary T Welch
Use register commands with command registration array.
2009-11-24presto: use register_commands()Zachary T Welch
Use register_commands() with command registration array.
2009-11-24parport: use register_commands()Zachary T Welch
Use register_commands() with a command registration array.
2009-11-24jlink: use register_commands()Zachary T Welch
Use register_commands() with command registration array.
2009-11-24gw16012: use register_commands()Zachary T Welch
Use register_commands() with command registration array.
2009-11-24ft2232: use register_commands()Zachary T Welch
Use register_commands() with a command registration array.
2009-11-24at91rm9200: use register_commands()Zachary T Welch
Use register_commands() with command registration array. --- This module was broken by previous changes, but no one has complained. Are there still users for this modules?
2009-11-24arm-jtag-ew: use register_commands()Zachary T Welch
Uses register_commands() with command registration array.
2009-11-24amt_jtagaccel: use register_commands()Zachary T Welch
Use register_commands() with command_registration array.
2009-11-24use COMMAND_REGISTER macroZachary T Welch
Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases.
2009-11-24improve startup tcl scriptsZachary T Welch
Fix a couple of layering violations missed in the last round. Add missing comment headers.
2009-11-24jlink: rewrite to use jtag_usb_openZachary T Welch
Rewrite jlink_usb_open to use jtag_usb_open helper.
2009-11-24jlink: remove superfluous indentationZachary T Welch
Rewrite logic to remove indentation in jlink_usb_open, in prep for further surgery.
2009-11-24rlink: use jtag_usb_open helperZachary T Welch
Rewrite rlink_init routine to use jtag_usb_open helper. Eliminates some spurious calls to exit(). Wraps a tremendously long line of comment to fit 80 columns too.
2009-11-24rlink: eliminate spurious indentationZachary T Welch
Rework rlink_init to use less indentation. Best viewed with diff -w.
2009-11-24vsllink: rewrite to use jtag_usb_openZachary T Welch
Rewrite vsllink_usb_open to use jtag_usb_open helper. Eliminates spurious calls to exit().
2009-11-24usbprog: use jtag_usb_openZachary T Welch
Rewrite usbprob_jtag_open to use jtag_usb_open helper.
2009-11-24arm-jtag-ew: use jtag_usb_openZachary T Welch
Rewrite armjtagwe_usb_open to use jtag_usb_open.
2009-11-24add jtag/usb_common.[ch] filesZachary T Welch
Begins to consolidate code used by several USB JTAG interfaces. This first patch provides the required build system changes and a common jtag_usb_open routine, which will replace the guts for probing the busses and devices for possible VID/PID matches. The following patches convert each driver to use it.
2009-11-22zy1000: fix breakage in command parsing code for power commandØyvind Harboe
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>