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

Go to the source code of this file.

Functions

 COMMAND_HANDLER (hl_transport_jtag_command)
 
 COMMAND_HANDLER (hl_transport_reset_command)
 
static void hl_constructor (void)
 
static int hl_jtag_transport_select (struct command_context *cmd_ctx)
 
static int hl_swd_transport_select (struct command_context *cmd_ctx)
 
static int hl_transport_init (struct command_context *cmd_ctx)
 
bool transport_is_hla (void)
 

Variables

static struct transport hl_jtag_transport
 
static const struct command_registration hl_jtag_transport_command_handlers []
 
static struct transport hl_swd_transport
 
static const struct command_registration hl_swd_transport_command_handlers []
 
static const struct command_registration hl_swd_transport_subcommand_handlers []
 
static const struct command_registration hl_transport_jtag_subcommand_handlers []
 
const char * hl_transports [] = { "hla_swd", "hla_jtag", NULL }
 

Function Documentation

◆ COMMAND_HANDLER() [1/2]

COMMAND_HANDLER ( hl_transport_jtag_command  )

Definition at line 25 of file hla_transport.c.

References ERROR_OK, and LOG_DEBUG.

◆ COMMAND_HANDLER() [2/2]

COMMAND_HANDLER ( hl_transport_reset_command  )

Definition at line 32 of file hla_transport.c.

References hl_interface_init_reset().

◆ hl_constructor()

static void hl_constructor ( void  )
static

Definition at line 211 of file hla_transport.c.

◆ hl_jtag_transport_select()

static int hl_jtag_transport_select ( struct command_context cmd_ctx)
static

◆ hl_swd_transport_select()

static int hl_swd_transport_select ( struct command_context cmd_ctx)
static

Definition at line 189 of file hla_transport.c.

◆ hl_transport_init()

◆ transport_is_hla()

Variable Documentation

◆ hl_jtag_transport

struct transport hl_jtag_transport
static
Initial value:
= {
.name = "hla_jtag",
.override_target = hl_interface_override_target,
}
int hl_interface_override_target(const char **targetname)
static int hl_transport_init(struct command_context *cmd_ctx)
static int hl_jtag_transport_select(struct command_context *cmd_ctx)

Definition at line 189 of file hla_transport.c.

Referenced by transport_is_hla().

◆ hl_jtag_transport_command_handlers

const struct command_registration hl_jtag_transport_command_handlers[]
static
Initial value:
= {
{
.name = "jtag",
.mode = COMMAND_ANY,
.help = "perform jtag tap actions",
.usage = "",
},
{
.name = "jtag_ntrst_delay",
.mode = COMMAND_ANY,
.handler = hl_transport_jtag_command,
.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 const struct command_registration hl_transport_jtag_subcommand_handlers[]
Definition: hla_transport.c:58
const char * name
Definition: command.h:229

Definition at line 32 of file hla_transport.c.

Referenced by hl_jtag_transport_select().

◆ hl_swd_transport

struct transport hl_swd_transport
static
Initial value:
= {
.name = "hla_swd",
.override_target = hl_interface_override_target,
}
static int hl_swd_transport_select(struct command_context *cmd_ctx)

Definition at line 189 of file hla_transport.c.

Referenced by transport_is_hla().

◆ hl_swd_transport_command_handlers

const struct command_registration hl_swd_transport_command_handlers[]
static
Initial value:
= {
{
.name = "swd",
.mode = COMMAND_ANY,
.help = "SWD command group",
.usage = "",
},
}
static const struct command_registration hl_swd_transport_subcommand_handlers[]
Definition: hla_transport.c:37

Definition at line 32 of file hla_transport.c.

◆ hl_swd_transport_subcommand_handlers

const struct command_registration hl_swd_transport_subcommand_handlers[]
static
Initial value:
= {
{
.name = "newdap",
.mode = COMMAND_CONFIG,
.jim_handler = jim_hl_newtap,
.help = "declare a new SWD DAP",
},
}
@ COMMAND_CONFIG
Definition: command.h:41
int jim_hl_newtap(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
Definition: hla_tcl.c:138

Definition at line 32 of file hla_transport.c.

◆ hl_transport_jtag_subcommand_handlers

const struct command_registration hl_transport_jtag_subcommand_handlers[]
static

Definition at line 32 of file hla_transport.c.

◆ hl_transports

const char* hl_transports[] = { "hla_swd", "hla_jtag", NULL }

Definition at line 209 of file hla_transport.c.