|
|
@@ -122,9 +122,9 @@ hl_transport_jtag_subcommand_handlers[] = { |
|
|
|
static const struct command_registration stlink_transport_command_handlers[] = { |
|
|
|
|
|
|
|
{ |
|
|
|
.name = "stlink", |
|
|
|
.name = "hla", |
|
|
|
.mode = COMMAND_ANY, |
|
|
|
.help = "perform stlink actions", |
|
|
|
.help = "perform hl adapter actions", |
|
|
|
.usage = "", |
|
|
|
.chain = hl_transport_stlink_subcommand_handlers, |
|
|
|
}, |
|
|
@@ -167,9 +167,9 @@ static int hl_transport_init(struct command_context *cmd_ctx) |
|
|
|
/* get selected transport as enum */ |
|
|
|
tr = HL_TRANSPORT_UNKNOWN; |
|
|
|
|
|
|
|
if (strcmp(transport->name, "stlink_swd") == 0) |
|
|
|
if (strcmp(transport->name, "hla_swd") == 0) |
|
|
|
tr = HL_TRANSPORT_SWD; |
|
|
|
else if (strcmp(transport->name, "stlink_jtag") == 0) |
|
|
|
else if (strcmp(transport->name, "hla_jtag") == 0) |
|
|
|
tr = HL_TRANSPORT_JTAG; |
|
|
|
else if (strcmp(transport->name, "stlink_swim") == 0) |
|
|
|
tr = HL_TRANSPORT_SWIM; |
|
|
@@ -201,29 +201,29 @@ static int hl_transport_select(struct command_context *ctx) |
|
|
|
} |
|
|
|
|
|
|
|
static struct transport hl_swd_transport = { |
|
|
|
.name = "stlink_swd", |
|
|
|
.name = "hla_swd", |
|
|
|
.select = hl_transport_select, |
|
|
|
.init = hl_transport_init, |
|
|
|
}; |
|
|
|
|
|
|
|
static struct transport hl_jtag_transport = { |
|
|
|
.name = "stlink_jtag", |
|
|
|
.name = "hla_jtag", |
|
|
|
.select = hl_transport_select, |
|
|
|
.init = hl_transport_init, |
|
|
|
}; |
|
|
|
|
|
|
|
static struct transport hl_swim_transport = { |
|
|
|
static struct transport stlink_swim_transport = { |
|
|
|
.name = "stlink_swim", |
|
|
|
.select = hl_transport_select, |
|
|
|
.init = hl_transport_init, |
|
|
|
}; |
|
|
|
|
|
|
|
const char *hl_transports[] = { "stlink_swd", "stlink_jtag", "stlink_swim", NULL }; |
|
|
|
const char *hl_transports[] = { "hla_swd", "hla_jtag", "stlink_swim", NULL }; |
|
|
|
|
|
|
|
static void hl_constructor(void) __attribute__ ((constructor)); |
|
|
|
static void hl_constructor(void) |
|
|
|
{ |
|
|
|
transport_register(&hl_swd_transport); |
|
|
|
transport_register(&hl_jtag_transport); |
|
|
|
transport_register(&hl_swim_transport); |
|
|
|
transport_register(&stlink_swim_transport); |
|
|
|
} |