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

Go to the source code of this file.

Functions

static int testee_halt (struct target *target)
 
static int testee_init (struct command_context *cmd_ctx, struct target *target)
 
static int testee_poll (struct target *target)
 
static int testee_reset_assert (struct target *target)
 
static int testee_reset_deassert (struct target *target)
 

Variables

static const struct command_registration testee_command_handlers []
 
struct target_type testee_target
 

Function Documentation

◆ testee_halt()

static int testee_halt ( struct target target)
static

Definition at line 38 of file testee.c.

References ERROR_OK, target::state, and TARGET_HALTED.

◆ testee_init()

static int testee_init ( struct command_context cmd_ctx,
struct target target 
)
static

Definition at line 28 of file testee.c.

References ERROR_OK.

◆ testee_poll()

static int testee_poll ( struct target target)
static

Definition at line 32 of file testee.c.

References ERROR_OK, target::state, TARGET_DEBUG_RUNNING, TARGET_HALTED, and TARGET_RUNNING.

◆ testee_reset_assert()

static int testee_reset_assert ( struct target target)
static

Definition at line 43 of file testee.c.

References ERROR_OK, target::state, and TARGET_RESET.

◆ testee_reset_deassert()

static int testee_reset_deassert ( struct target target)
static

Definition at line 48 of file testee.c.

References ERROR_OK, target::state, and TARGET_RUNNING.

Variable Documentation

◆ testee_command_handlers

const struct command_registration testee_command_handlers[]
static
Initial value:
= {
{
.name = "testee",
.mode = COMMAND_ANY,
.help = "testee target commands",
.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
const struct command_registration hello_command_handlers[]
Export the registration for the hello command group, so it can be embedded in example drivers.
Definition: hello.c:85
const char * usage
a string listing the options and arguments, required or optional
Definition: command.h:235

Definition at line 1 of file testee.c.

◆ testee_target

struct target_type testee_target
Initial value:
= {
.name = "testee",
.init_target = &testee_init,
.poll = &testee_poll,
.halt = &testee_halt,
.assert_reset = &testee_reset_assert,
.deassert_reset = &testee_reset_deassert,
}
static int testee_init(struct command_context *cmd_ctx, struct target *target)
Definition: testee.c:28
static int testee_reset_assert(struct target *target)
Definition: testee.c:43
static int testee_poll(struct target *target)
Definition: testee.c:32
static int testee_reset_deassert(struct target *target)
Definition: testee.c:48
static const struct command_registration testee_command_handlers[]
Definition: testee.c:17
static int testee_halt(struct target *target)
Definition: testee.c:38

Definition at line 48 of file testee.c.