forked from auracaster/openocd
use COMMAND_REGISTER macro
Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases.
This commit is contained in:
@@ -1180,10 +1180,10 @@ COMMAND_HANDLER(at91sam7_handle_gpnvm_command)
|
||||
|
||||
static int at91sam7_register_commands(struct command_context *cmd_ctx)
|
||||
{
|
||||
struct command *at91sam7_cmd = register_command(cmd_ctx, NULL, "at91sam7",
|
||||
struct command *at91sam7_cmd = COMMAND_REGISTER(cmd_ctx, NULL, "at91sam7",
|
||||
NULL, COMMAND_ANY, NULL);
|
||||
|
||||
register_command(cmd_ctx, at91sam7_cmd, "gpnvm",
|
||||
COMMAND_REGISTER(cmd_ctx, at91sam7_cmd, "gpnvm",
|
||||
at91sam7_handle_gpnvm_command, COMMAND_EXEC,
|
||||
"at91sam7 gpnvm <bit> set | clear, "
|
||||
"set or clear one gpnvm bit");
|
||||
|
||||
Reference in New Issue
Block a user