51 LOG_WARNING(
"\'srst_nogate\' reset_config option is required");
62 .help =
"declare a new TAP"
67 .handler = dapdirect_jtag_empty_command,
73 .handler = dapdirect_jtag_empty_command,
77 .name =
"arp_init-reset",
79 .handler = dapdirect_jtag_reset_command,
83 .name =
"tapisenabled",
95 .handler = dapdirect_jtag_empty_command,
101 .handler = dapdirect_jtag_empty_command,
112 .handler = dapdirect_jtag_empty_command,
126 .name =
"jtag_ntrst_delay",
128 .handler = dapdirect_jtag_empty_command,
139 .help =
"declare a new SWD DAP",
148 .help =
"SWD command group",
179 LOG_WARNING(
"\'srst_nogate\' reset_config option is required");
187 .
name =
"dapdirect_jtag",
193 .
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,...
struct esp_usb_jtag __attribute__
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)
int jim_jtag_tap_enabler(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
int jim_jtag_configure(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
int jim_jtag_newtap(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
#define LOG_WARNING(expr ...)
#define LOG_DEBUG(expr ...)
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.