@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
return ERROR_OK;
}
-static const struct command_registration presto_command_handlers[] = {
+static const struct command_registration presto_subcommand_handlers[] = {
{
- .name = "presto_serial",
+ .name = "serial",
.handler = presto_handle_serial_command,
.mode = COMMAND_CONFIG,
.help = "Configure USB serial number of Presto device.",
COMMAND_REGISTRATION_DONE
};
+static const struct command_registration presto_command_handlers[] = {
+ {
+ .name = "presto",
+ .mode = COMMAND_ANY,
+ .help = "perform presto management",
+ .chain = presto_subcommand_handlers,
+ .usage = "",
+ },
+ COMMAND_REGISTRATION_DONE
+};
+
static int presto_jtag_init(void)
{
if (presto_open(presto_serial) != ERROR_OK) {
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