diff options
author | Marc Schink <dev@zapb.de> | 2021-08-01 14:04:49 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-08-14 13:36:47 +0100 |
commit | 8399cbc9584985c2b9e4aafb3a6afdb17df89b7f (patch) | |
tree | 02e7a1d2761f1acb8fa3688daad002cae8e8632b /src/jtag/startup.tcl | |
parent | 8d70a67b200fbed8a5599873a55d7cab1e4c9994 (diff) | |
download | riscv-openocd-8399cbc9584985c2b9e4aafb3a6afdb17df89b7f.zip riscv-openocd-8399cbc9584985c2b9e4aafb3a6afdb17df89b7f.tar.gz riscv-openocd-8399cbc9584985c2b9e4aafb3a6afdb17df89b7f.tar.bz2 |
drivers/buspirate: Group adapter commands
Use a command group 'buspirate' with subcommands instead of individual
commands with 'buspirate_' prefix.
The old commands are still available for backward compatibility but
marked as deprecated.
Change-Id: Id999d4ba276af576fb22b76052f3c0a1f3e1b876
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/6404
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/jtag/startup.tcl')
-rw-r--r-- | src/jtag/startup.tcl | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/jtag/startup.tcl b/src/jtag/startup.tcl index 9e5ac26..80d21e7 100644 --- a/src/jtag/startup.tcl +++ b/src/jtag/startup.tcl @@ -603,4 +603,46 @@ proc sysfsgpio_swdio_num args { eval sysfsgpio swdio_num $args } +lappend _telnet_autocomplete_skip buspirate_adc +proc buspirate_adc args { + echo "DEPRECATED! use 'buspirate adc' not 'buspirate_adc'" + eval buspirate adc $args +} + +lappend _telnet_autocomplete_skip buspirate_vreg +proc buspirate_vreg args { + echo "DEPRECATED! use 'buspirate vreg' not 'buspirate_vreg'" + eval buspirate vreg $args +} + +lappend _telnet_autocomplete_skip buspirate_pullup +proc buspirate_pullup args { + echo "DEPRECATED! use 'buspirate pullup' not 'buspirate_pullup'" + eval buspirate pullup $args +} + +lappend _telnet_autocomplete_skip buspirate_led +proc buspirate_led args { + echo "DEPRECATED! use 'buspirate led' not 'buspirate_led'" + eval buspirate led $args +} + +lappend _telnet_autocomplete_skip buspirate_speed +proc buspirate_speed args { + echo "DEPRECATED! use 'buspirate speed' not 'buspirate_speed'" + eval buspirate speed $args +} + +lappend _telnet_autocomplete_skip buspirate_mode +proc buspirate_mode args { + echo "DEPRECATED! use 'buspirate mode' not 'buspirate_mode'" + eval buspirate mode $args +} + +lappend _telnet_autocomplete_skip buspirate_port +proc buspirate_port args { + echo "DEPRECATED! use 'buspirate port' not 'buspirate_port'" + eval buspirate port $args +} + # END MIGRATION AIDS |