OpenOCD
util.c File Reference
Include dependency graph for util.c:

Go to the source code of this file.

Functions

 COMMAND_HANDLER (handler_util_ms)
 
int util_init (struct command_context *cmd_ctx)
 

Variables

static const struct command_registration util_command_handlers []
 

Function Documentation

◆ COMMAND_HANDLER()

COMMAND_HANDLER ( handler_util_ms  )

Definition at line 17 of file util.c.

References CMD, CMD_ARGC, command_print(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, and timeval_ms().

◆ util_init()

int util_init ( struct command_context cmd_ctx)

Definition at line 39 of file util.c.

References NULL, register_commands(), and util_command_handlers.

Referenced by openocd_main().

Variable Documentation

◆ util_command_handlers

const struct command_registration util_command_handlers[]
static
Initial value:
= {
{
.name = "ms",
.mode = COMMAND_ANY,
.handler = handler_util_ms,
.help =
"Returns ever increasing milliseconds. Used to calculate differences in time.",
.usage = "",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:253
@ COMMAND_ANY
Definition: command.h:42

Definition at line 17 of file util.c.

Referenced by util_init().