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

Go to the source code of this file.

Functions

static int jim_util_ms (Jim_Interp *interp, int argc, Jim_Obj *const *argv)
 
int util_init (struct command_context *cmd_ctx)
 

Variables

static const struct command_registration util_command_handlers []
 

Function Documentation

◆ jim_util_ms()

static int jim_util_ms ( Jim_Interp *  interp,
int  argc,
Jim_Obj *const *  argv 
)
static

Definition at line 16 of file util.c.

References timeval_ms().

◆ util_init()

int util_init ( struct command_context cmd_ctx)

Definition at line 45 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,
.jim_handler = jim_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:247
@ COMMAND_ANY
Definition: command.h:42
static int jim_util_ms(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
Definition: util.c:16

Definition at line 16 of file util.c.

Referenced by util_init().