40 .handler = handle_jtag_newtap,
41 .help =
"declare a new SWD DAP",
42 .usage =
"basename dap_type ['-irlen' count] "
43 "['-enable'|'-disable'] "
44 "['-expected_id' number] "
45 "['-ignore-version'] "
47 "['-ircapture' number] "
48 "['-ir-bypass' number] "
58 .help =
"SWD command group",
69 .handler = handle_jtag_newtap,
70 .help =
"Create a new TAP instance named basename.tap_type, "
71 "and appends it to the scan chain.",
72 .usage =
"basename tap_type '-irlen' count "
73 "['-enable'|'-disable'] "
74 "['-expected_id' number] "
75 "['-ignore-version'] "
77 "['-ircapture' number] "
78 "['-ir-bypass' number] "
84 .handler = hl_transport_jtag_command,
90 .handler = hl_transport_jtag_command,
94 .name =
"arp_init-reset",
96 .handler = hl_transport_reset_command,
100 .name =
"tapisenabled",
102 .handler = handle_jtag_tap_enabler,
103 .help =
"Returns a Tcl boolean (0/1) indicating whether "
104 "the TAP is enabled (1) or not (0).",
110 .handler = handle_jtag_tap_enabler,
111 .help =
"Try to enable the specified TAP using the "
112 "'tap-enable' TAP event.",
116 .name =
"tapdisable",
118 .handler = hl_transport_jtag_command,
124 .handler = hl_transport_jtag_command,
130 .handler = handle_jtag_configure,
136 .handler = hl_transport_jtag_command,
147 .help =
"perform jtag tap actions",
152 .
name =
"jtag_ntrst_delay",
154 .handler = hl_transport_jtag_command,
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
static int register_commands(struct command_context *cmd_ctx, const char *cmd_prefix, const struct command_registration *cmds)
Register one or more commands in the specified context, as children of parent (or top-level commends,...
int hl_interface_init_target(struct target *t)
int hl_interface_open(enum hl_transports tr)
int hl_interface_override_target(const char **targetname)
int hl_interface_init_reset(void)
static int hl_swd_transport_select(struct command_context *cmd_ctx)
static const struct command_registration hl_swd_transport_command_handlers[]
COMMAND_HANDLER(hl_transport_jtag_command)
static struct transport hl_swd_transport
static const struct command_registration hl_transport_jtag_subcommand_handlers[]
static struct transport hl_jtag_transport
static void hl_constructor(void)
static int hl_transport_init(struct command_context *cmd_ctx)
static int hl_jtag_transport_select(struct command_context *cmd_ctx)
static const struct command_registration hl_jtag_transport_command_handlers[]
bool transport_is_hla(void)
static const struct command_registration hl_swd_transport_subcommand_handlers[]
#define LOG_ERROR(expr ...)
#define LOG_DEBUG(expr ...)
struct qn908x_flash_bank __attribute__
Wrapper for transport lifecycle operations.
const char * name
Each transport has a unique name, used to select it from among the alternatives.
struct target * get_current_target(struct command_context *cmd_ctx)
struct transport * get_current_transport(void)
Returns the transport currently being used by this debug or programming session.
int transport_register(struct transport *new_transport)
Registers a transport.