command: Cleaned up and improved the naming of cmd_reset and cmd_connect_reset

This commit is contained in:
dragonmux 2022-06-15 21:53:39 -04:00 committed by Piotr Esden-Tempski
parent 12fefa73c9
commit 94afb264e4
1 changed files with 6 additions and 6 deletions

View File

@ -52,8 +52,8 @@ static bool cmd_frequency(target *t, int argc, char **argv);
static bool cmd_targets(target *t, int argc, char **argv);
static bool cmd_morse(target *t, int argc, char **argv);
static bool cmd_halt_timeout(target *t, int argc, const char **argv);
static bool cmd_connect_srst(target *t, int argc, const char **argv);
static bool cmd_hard_srst(target *t, int argc, const char **argv);
static bool cmd_connect_reset(target *t, int argc, const char **argv);
static bool cmd_reset(target *t, int argc, const char **argv);
#ifdef PLATFORM_HAS_POWER_SWITCH
static bool cmd_target_power(target *t, int argc, const char **argv);
#endif
@ -78,8 +78,8 @@ const struct command_s cmd_list[] = {
{"targets", (cmd_handler)cmd_targets, "Display list of available targets" },
{"morse", (cmd_handler)cmd_morse, "Display morse error message" },
{"halt_timeout", (cmd_handler)cmd_halt_timeout, "Timeout (ms) to wait until Cortex-M is halted: (Default 2000)" },
{"connect_srst", (cmd_handler)cmd_connect_srst, "Configure connect under SRST: (enable|disable)" },
{"hard_srst", (cmd_handler)cmd_hard_srst, "Force a pulse on the hard SRST line - disconnects target" },
{"connect_rst", (cmd_handler)cmd_connect_reset, "Configure connect under reset: (enable|disable)" },
{"reset", (cmd_handler)cmd_reset, "Pulse the nRST line - disconnects target" },
#ifdef PLATFORM_HAS_POWER_SWITCH
{"tpwr", (cmd_handler)cmd_target_power, "Supplies power to the target: (enable|disable)"},
#endif
@ -407,7 +407,7 @@ bool parse_enable_or_disable(const char *s, bool *out) {
}
}
static bool cmd_connect_srst(target *t, int argc, const char **argv)
static bool cmd_connect_reset(target *t, int argc, const char **argv)
{
(void)t;
bool print_status = false;
@ -438,7 +438,7 @@ static bool cmd_halt_timeout(target *t, int argc, const char **argv)
return true;
}
static bool cmd_hard_srst(target *t, int argc, const char **argv)
static bool cmd_reset(target *t, int argc, const char **argv)
{
(void)t;
(void)argc;