51 LOG_WARNING(
"\'srst_nogate\' reset_config option is required");
61 .handler = handle_jtag_newtap,
62 .help =
"declare a new TAP",
63 .usage =
"basename tap_type '-irlen' count "
64 "['-enable'|'-disable'] "
65 "['-expected_id' number] "
66 "['-ignore-version'] "
68 "['-ircapture' number] "
69 "['-ir-bypass' number] "
75 .handler = dapdirect_jtag_empty_command,
81 .handler = dapdirect_jtag_empty_command,
85 .name =
"arp_init-reset",
87 .handler = dapdirect_jtag_reset_command,
91 .name =
"tapisenabled",
93 .handler = handle_jtag_tap_enabler,
94 .help =
"Returns a Tcl boolean (0/1) indicating whether "
95 "the TAP is enabled (1) or not (0).",
101 .handler = handle_jtag_tap_enabler,
102 .help =
"Try to enable the specified TAP using the "
103 "'tap-enable' TAP event.",
107 .name =
"tapdisable",
109 .handler = dapdirect_jtag_empty_command,
115 .handler = dapdirect_jtag_empty_command,
121 .handler = handle_jtag_configure,
127 .handler = dapdirect_jtag_empty_command,
141 .name =
"jtag_ntrst_delay",
143 .handler = dapdirect_jtag_empty_command,
153 .handler = handle_jtag_newtap,
154 .help =
"declare a new SWD DAP",
155 .usage =
"basename dap_type ['-irlen' count] "
156 "['-enable'|'-disable'] "
157 "['-expected_id' number] "
158 "['-ignore-version'] "
159 "['-ignore-bypass'] "
160 "['-ircapture' number] "
161 "['-ir-bypass' number] "
171 .help =
"SWD command group",
202 LOG_WARNING(
"\'srst_nogate\' reset_config option is required");
210 .
name =
"dapdirect_jtag",
216 .
name =
"dapdirect_swd",
static const struct command_registration dapdirect_jtag_handlers[]
bool transport_is_dapdirect_swd(void)
Returns true if the current debug session is using SWD as its transport.
bool transport_is_dapdirect_jtag(void)
Returns true if the current debug session is using JTAG as its transport.
static struct transport dapdirect_jtag_transport
static void dapdirect_constructor(void)
COMMAND_HANDLER(dapdirect_jtag_empty_command)
static int dapdirect_init(struct command_context *ctx)
static const struct command_registration dapdirect_jtag_subcommand_handlers[]
static const struct command_registration dapdirect_swd_handlers[]
static int dapdirect_jtag_select(struct command_context *ctx)
static int dapdirect_swd_select(struct command_context *ctx)
static struct transport dapdirect_swd_transport
static const struct command_registration dapdirect_swd_subcommand_handlers[]
#define CMD_NAME
Use this macro to access the name of the command being handled, rather than accessing the variable di...
#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,...
static enum reset_types jtag_reset_config
int adapter_deassert_reset(void)
enum reset_types jtag_get_reset_config(void)
int adapter_assert_reset(void)
#define LOG_WARNING(expr ...)
#define LOG_DEBUG(expr ...)
struct qn908x_flash_bank __attribute__
const char * usage
a string listing the options and arguments, required or optional
Wrapper for transport lifecycle operations.
const char * name
Each transport has a unique name, used to select it from among the alternatives.
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.