jtag/drivers/kitprog: Restructure commands
Use a command group 'kitprog' with subcommands instead of individual commands with 'kitprog_' prefix. The old command is still available to ensure backwards compatibility, but is marked as deprecated. Change-Id: I7f0d447939819ffc488a3d7a8de672b58887127f Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/7967 Reviewed-by: Bohdan Tymkiv <bohdan200@gmail.com> Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
1c9f4ac181
commit
f55b122b42
@@ -879,6 +879,13 @@ static const struct command_registration kitprog_subcommand_handlers[] = {
|
||||
.usage = "",
|
||||
.help = "try to acquire a PSoC",
|
||||
},
|
||||
{
|
||||
.name = "init_acquire_psoc",
|
||||
.handler = &kitprog_handle_init_acquire_psoc_command,
|
||||
.mode = COMMAND_CONFIG,
|
||||
.help = "try to acquire a PSoC during init",
|
||||
.usage = "",
|
||||
},
|
||||
COMMAND_REGISTRATION_DONE
|
||||
};
|
||||
|
||||
@@ -890,13 +897,6 @@ static const struct command_registration kitprog_command_handlers[] = {
|
||||
.usage = "<cmd>",
|
||||
.chain = kitprog_subcommand_handlers,
|
||||
},
|
||||
{
|
||||
.name = "kitprog_init_acquire_psoc",
|
||||
.handler = &kitprog_handle_init_acquire_psoc_command,
|
||||
.mode = COMMAND_CONFIG,
|
||||
.help = "try to acquire a PSoC during init",
|
||||
.usage = "",
|
||||
},
|
||||
COMMAND_REGISTRATION_DONE
|
||||
};
|
||||
|
||||
|
||||
@@ -1126,6 +1126,12 @@ proc "cmsis_dap_usb" {args} {
|
||||
eval cmsis-dap usb $args
|
||||
}
|
||||
|
||||
lappend _telnet_autocomplete_skip "kitprog_init_acquire_psoc"
|
||||
proc "kitprog_init_acquire_psoc" {} {
|
||||
echo "DEPRECATED! use 'kitprog init_acquire_psoc', not 'kitprog_init_acquire_psoc'"
|
||||
eval kitprog init_acquire_psoc
|
||||
}
|
||||
|
||||
lappend _telnet_autocomplete_skip "pld device"
|
||||
proc "pld device" {driver tap_name {opt 0}} {
|
||||
echo "DEPRECATED! use 'pld create ...', not 'pld device ...'"
|
||||
|
||||
Reference in New Issue
Block a user