This is an automated email from Gerrit. Marc Schink ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/6390
-- gerrit commit 8fd32341f126ddbf6eb50d5848b872df19626ace Author: Marc Schink <[email protected]> Date: Fri Jul 30 18:11:23 2021 +0200 drivers/presto: Group adapter commands Use a command group 'presto' with subcommands instead of individual commands with 'presto_' prefix. The old commands are still available for backward compatibility but marked as deprecated. Change-Id: I883d8d87fd457d29cee8d12cd80f2e6c405e8f42 Signed-off-by: Marc Schink <[email protected]> diff --git a/doc/openocd.texi b/doc/openocd.texi index 0d7719d..a9fe290 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -3033,7 +3033,7 @@ parport cable wiggler @deffn {Interface Driver} {presto} ASIX PRESTO USB JTAG programmer. -@deffn {Config Command} {presto_serial} serial_string +@deffn {Config Command} {presto serial} serial_string Configures the USB serial number of the Presto device to use. @end deffn @end deffn diff --git a/src/jtag/drivers/presto.c b/src/jtag/drivers/presto.c index b6f110b..87863fc 100644 --- a/src/jtag/drivers/presto.c +++ b/src/jtag/drivers/presto.c @@ -521,7 +521,7 @@ COMMAND_HANDLER(presto_handle_serial_command) static const struct command_registration presto_command_handlers[] = { { - .name = "presto_serial", + .name = "serial", .handler = presto_handle_serial_command, .mode = COMMAND_CONFIG, .help = "Configure USB serial number of Presto device.", diff --git a/src/jtag/startup.tcl b/src/jtag/startup.tcl index 63d6ed6..4af04a1 100644 --- a/src/jtag/startup.tcl +++ b/src/jtag/startup.tcl @@ -303,4 +303,10 @@ proc parport_toggling_time args { eval parport toggling_time $args } +lappend _telnet_autocomplete_skip presto_serial +proc presto_serial args { + echo "DEPRECATED! use 'presto serial' not 'presto_serial'" + eval presto serial $args +} + # END MIGRATION AIDS --
