diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-15 08:41:30 -0700 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-15 08:41:30 -0700 |
commit | b559b273b526b3077b3ca219eecc8df9f86efac0 (patch) | |
tree | 5848552f09431e065550e60e8106029e01db3136 /src/jtag/tcl.c | |
parent | 96f9790279f74f39b35fc3ad09340fd03123180c (diff) | |
download | riscv-openocd-b559b273b526b3077b3ca219eecc8df9f86efac0.zip riscv-openocd-b559b273b526b3077b3ca219eecc8df9f86efac0.tar.gz riscv-openocd-b559b273b526b3077b3ca219eecc8df9f86efac0.tar.bz2 |
rename jtag_nsrst_delay as adapter_nsrst_delay
Globally rename "jtag_nsrst_delay" as "adapter_nsrst_delay", and move it
out of the "jtag" command group ... it needs to be used with non-JTAG
transports
Includes a migration aid (in jtag/startup.tcl) so that old user scripts
won't break. That aid should Sunset in about a year.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/jtag/tcl.c')
-rw-r--r-- | src/jtag/tcl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c index 8faefd1..d587922 100644 --- a/src/jtag/tcl.c +++ b/src/jtag/tcl.c @@ -1291,7 +1291,7 @@ next: return ERROR_OK; } -COMMAND_HANDLER(handle_jtag_nsrst_delay_command) +COMMAND_HANDLER(handle_adapter_nsrst_delay_command) { if (CMD_ARGC > 1) return ERROR_COMMAND_SYNTAX_ERROR; @@ -1302,7 +1302,7 @@ COMMAND_HANDLER(handle_jtag_nsrst_delay_command) jtag_set_nsrst_delay(delay); } - command_print(CMD_CTX, "jtag_nsrst_delay: %u", jtag_get_nsrst_delay()); + command_print(CMD_CTX, "adapter_nsrst_delay: %u", jtag_get_nsrst_delay()); return ERROR_OK; } @@ -1619,6 +1619,13 @@ static const struct command_registration interface_command_handlers[] = { .usage = "[khz]", }, { + .name = "adapter_nsrst_delay", + .handler = handle_adapter_nsrst_delay_command, + .mode = COMMAND_ANY, + .help = "delay after deasserting srst in ms", + .usage = "[milliseconds]", + }, + { .name = "interface", .handler = handle_interface_command, .mode = COMMAND_CONFIG, @@ -1667,13 +1674,6 @@ static const struct command_registration jtag_command_handlers[] = { "[srst_push_pull|srst_open_drain]", }, { - .name = "jtag_nsrst_delay", - .handler = handle_jtag_nsrst_delay_command, - .mode = COMMAND_ANY, - .help = "delay after deasserting srst in ms", - .usage = "[milliseconds]", - }, - { .name = "jtag_ntrst_delay", .handler = handle_jtag_ntrst_delay_command, .mode = COMMAND_ANY, |