summaryrefslogtreecommitdiff
path: root/src/jtag
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2010-03-15 08:43:16 -0700
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-03-15 08:43:16 -0700
commita540033a71eb0b10bb8de85963781ec1b9c06cf1 (patch)
tree6e183a2896497d99eb25f80a3dfdd5198bab8d0a /src/jtag
parent1bd3ae398646da1107e00e0651abbf9691d2d9ff (diff)
downloadopenocd+libswd-a540033a71eb0b10bb8de85963781ec1b9c06cf1.tar.gz
openocd+libswd-a540033a71eb0b10bb8de85963781ec1b9c06cf1.tar.bz2
openocd+libswd-a540033a71eb0b10bb8de85963781ec1b9c06cf1.tar.xz
openocd+libswd-a540033a71eb0b10bb8de85963781ec1b9c06cf1.zip
move "reset_config" out of JTAG command group
The SRST configuration options are not specific to JTAG, so this command may be needed with non-JTAG debug sessions. Just move the command to a different group. (The TRST options are, however, clearly JTAG-specific, but for compatibility, they're now left alone. The flags they control could later be disabled in non-JTAG sessions.) Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/jtag')
-rw-r--r--src/jtag/tcl.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c
index 686eb3e8..90081cdc 100644
--- a/src/jtag/tcl.c
+++ b/src/jtag/tcl.c
@@ -1645,6 +1645,17 @@ static const struct command_registration interface_command_handlers[] = {
.mode = COMMAND_ANY,
.help = "List all built-in debug adapter interfaces (drivers)",
},
+ {
+ .name = "reset_config",
+ .handler = handle_reset_config_command,
+ .mode = COMMAND_ANY,
+ .help = "configure adapter reset behavior",
+ .usage = "[none|trst_only|srst_only|trst_and_srst] "
+ "[srst_pulls_trst|trst_pulls_srst|combined|separate] "
+ "[srst_gates_jtag|srst_nogate] "
+ "[trst_push_pull|trst_open_drain] "
+ "[srst_push_pull|srst_open_drain]",
+ },
COMMAND_REGISTRATION_DONE
};
@@ -1670,17 +1681,6 @@ static const struct command_registration jtag_command_handlers[] = {
.usage = "[fallback_speed_khz]",
},
{
- .name = "reset_config",
- .handler = handle_reset_config_command,
- .mode = COMMAND_ANY,
- .help = "configure JTAG reset behavior",
- .usage = "[none|trst_only|srst_only|trst_and_srst] "
- "[srst_pulls_trst|trst_pulls_srst|combined|separate] "
- "[srst_gates_jtag|srst_nogate] "
- "[trst_push_pull|trst_open_drain] "
- "[srst_push_pull|srst_open_drain]",
- },
- {
.name = "jtag_ntrst_delay",
.handler = handle_jtag_ntrst_delay_command,
.mode = COMMAND_ANY,