| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Adds two "minidriver_imp.h" files, so the right one is allowed to be
"#included" by the Makefile logic.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Adds 'jtag init' command handler, which can be called as part of a
fine-grained 'init' process.
|
|
|
|
|
|
| |
Keep up with Jim Tcl interpreter creation cleanup.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
|
|
|
|
|
| |
Adds 'interp' field to command_context, chasing the few remaining
references to the global variable outside of the command module.
|
|
|
|
|
| |
Adds 'interp' field to jtag_tap_event_action structure to avoid
using the global variable of same name.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Moves the ID and IR-related option parsing to static helpers, removing
two levels of indent.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Use 'continue' to reduce identation levels and superfluous logic.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
jim and classic style commands are both supported.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
|
|
|
|
|
| |
Changes the interface definition field reference from register_commands
to commands, which allows the module to compile.
|
|
|
|
|
|
| |
during refactoring a search and replace error crept in
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
|
|
|
|
|
| |
Search and destroy lingering cases where the ARRAY_SIZE macro should
be used to convey more intrinsic meaning in the OpenOCD code.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Adding jim_handler field to command_registration allows removing the
register_jim helper. All command registrations now go through the
register_command{,s}() functions.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Use register_commands() with command registration array.
|
|
|
|
| |
Use register commands with command registration array.
|
|
|
|
| |
Use register_commands() with command registration array.
|
|
|
|
| |
Use register_commands() with a command registration array.
|
|
|
|
| |
Use register_commands() with command registration array.
|
|
|
|
| |
Use register_commands() with command registration array.
|
|
|
|
| |
Use register_commands() with a command registration array.
|
|
|
|
|
|
|
| |
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?
|
|
|
|
| |
Uses register_commands() with command registration array.
|
|
|
|
| |
Use register_commands() with command_registration array.
|
|
|
|
|
| |
Replaces direct calls to register_command() with a macro, to allow
its parameters to be changed and callers updated in phases.
|
|
|
|
|
| |
Fix a couple of layering violations missed in the last round.
Add missing comment headers.
|
|
|
|
| |
Rewrite jlink_usb_open to use jtag_usb_open helper.
|
|
|
|
|
| |
Rewrite logic to remove indentation in jlink_usb_open, in prep
for further surgery.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Rework rlink_init to use less indentation. Best viewed with diff -w.
|
|
|
|
|
|
| |
Rewrite vsllink_usb_open to use jtag_usb_open helper.
Eliminates spurious calls to exit().
|
|
|
|
| |
Rewrite usbprob_jtag_open to use jtag_usb_open helper.
|
|
|
|
| |
Rewrite armjtagwe_usb_open to use jtag_usb_open.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
|
|
|
|
|
| |
Removes some more useless forward declarations from a few JTAG drivers.
Moves interface and bit-bang structure defitions below their callbacks.
|
|
|
|
|
| |
Allow JTAG interface drivers to skip registering an register_commands
callback when it will just be empty.
|
|
|
|
|
|
| |
Rewrite ZY1000 power command handler to use new macros, simplify logic.
Remove unused port command handler declaration.
|
|
|
|
|
|
|
|
| |
Updates all command parsing of simple "enable" and "disable" arguments.
A few case in the tree use a tri-state or extended arguments, which
cannot use this simple macro.
Simlifies the xscale icache/dcache command handler logic.
|
|
|
|
| |
Updates all command parsing of "on" and "off" arguments.
|
|
|
|
|
|
|
| |
Moves definitions for each layer into their own file, eliminating
layering violations in the built-in TCL code. Updates src/Makefile.am
rules to include all files in the final startup.tcl input file, and
others Makefile.am rules to distribute the new files in our packages.
|
|
|
|
| |
Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
|