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

Go to the source code of this file.

Data Structures

struct  arm_dap_object
 

Enumerations

enum  dap_cfg_param {
  CFG_CHAIN_POSITION , CFG_IGNORE_SYSPWRUPACK , CFG_DP_ID , CFG_INSTANCE_ID ,
  CFG_ADIV6 , CFG_ADIV5
}
 

Functions

const char * adiv5_dap_name (struct adiv5_dap *self)
 
const struct swd_driveradiv5_dap_swd_driver (struct adiv5_dap *self)
 
struct adiv5_dapadiv5_get_dap (struct arm_dap_object *obj)
 
 COMMAND_HANDLER (handle_dap_info_command)
 
 COMMAND_HANDLER (handle_dap_init)
 
static int dap_check_config (struct adiv5_dap *dap)
 
int dap_cleanup_all (void)
 
static int dap_configure (struct jim_getopt_info *goi, struct arm_dap_object *dap)
 
static int dap_create (struct jim_getopt_info *goi)
 
static int dap_init_all (void)
 
struct adiv5_dapdap_instance_by_jim_obj (Jim_Interp *interp, Jim_Obj *o)
 
static void dap_instance_init (struct adiv5_dap *dap)
 
int dap_register_commands (struct command_context *cmd_ctx)
 
static int jim_dap_create (Jim_Interp *interp, int argc, Jim_Obj *const *argv)
 
static int jim_dap_names (Jim_Interp *interp, int argc, Jim_Obj *const *argv)
 
static LIST_HEAD (all_dap)
 

Variables

struct adapter_driveradapter_driver
 
static const struct command_registration dap_commands []
 
static const struct command_registration dap_subcommand_handlers []
 
const struct dap_ops jtag_dp_ops
 
static const struct jim_nvp nvp_config_opts []
 
const struct dap_ops swd_dap_ops
 

Enumeration Type Documentation

◆ dap_cfg_param

Enumerator
CFG_CHAIN_POSITION 
CFG_IGNORE_SYSPWRUPACK 
CFG_DP_ID 
CFG_INSTANCE_ID 
CFG_ADIV6 
CFG_ADIV5 

Definition at line 174 of file arm_dap.c.

Function Documentation

◆ adiv5_dap_name()

◆ adiv5_dap_swd_driver()

◆ adiv5_get_dap()

struct adiv5_dap* adiv5_get_dap ( struct arm_dap_object obj)

Definition at line 68 of file arm_dap.c.

References arm_dap_object::dap.

Referenced by COMMAND_HANDLER().

◆ COMMAND_HANDLER() [1/2]

◆ COMMAND_HANDLER() [2/2]

COMMAND_HANDLER ( handle_dap_init  )

Definition at line 440 of file arm_dap.c.

References dap_init_all().

◆ dap_check_config()

◆ dap_cleanup_all()

◆ dap_configure()

◆ dap_create()

◆ dap_init_all()

◆ dap_instance_by_jim_obj()

struct adiv5_dap* dap_instance_by_jim_obj ( Jim_Interp *  interp,
Jim_Obj *  o 
)

Definition at line 72 of file arm_dap.c.

References arm_dap_object::dap, lh(), list_for_each_entry, arm_dap_object::name, name, and NULL.

Referenced by adiv5_jim_spot_configure().

◆ dap_instance_init()

◆ dap_register_commands()

int dap_register_commands ( struct command_context cmd_ctx)

Definition at line 536 of file arm_dap.c.

Referenced by setup_command_handler().

◆ jim_dap_create()

static int jim_dap_create ( Jim_Interp *  interp,
int  argc,
Jim_Obj *const *  argv 
)
static

◆ jim_dap_names()

static int jim_dap_names ( Jim_Interp *  interp,
int  argc,
Jim_Obj *const *  argv 
)
static

Definition at line 424 of file arm_dap.c.

References lh(), list_for_each_entry, arm_dap_object::name, and NULL.

◆ LIST_HEAD()

static LIST_HEAD ( all_dap  )
static

Variable Documentation

◆ adapter_driver

Definition at line 30 of file adapter.c.

◆ dap_commands

const struct command_registration dap_commands[]
static
Initial value:
= {
{
.name = "dap",
.mode = COMMAND_CONFIG,
.help = "DAP commands",
.usage = "",
},
}
static const struct command_registration dap_subcommand_handlers[]
Definition: arm_dap.c:492
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:247
@ COMMAND_CONFIG
Definition: command.h:41
const char * usage
a string listing the options and arguments, required or optional
Definition: command.h:235

Definition at line 445 of file arm_dap.c.

◆ dap_subcommand_handlers

const struct command_registration dap_subcommand_handlers[]
static

Definition at line 445 of file arm_dap.c.

◆ jtag_dp_ops

const struct dap_ops jtag_dp_ops
extern

Definition at line 851 of file adi_v5_jtag.c.

Referenced by dap_init_all().

◆ nvp_config_opts

const struct jim_nvp nvp_config_opts[]
static
Initial value:
= {
{ .name = "-chain-position", .value = CFG_CHAIN_POSITION },
{ .name = "-ignore-syspwrupack", .value = CFG_IGNORE_SYSPWRUPACK },
{ .name = "-dp-id", .value = CFG_DP_ID },
{ .name = "-instance-id", .value = CFG_INSTANCE_ID },
{ .name = "-adiv6", .value = CFG_ADIV6 },
{ .name = "-adiv5", .value = CFG_ADIV5 },
{ .name = NULL, .value = -1 }
}
@ CFG_IGNORE_SYSPWRUPACK
Definition: arm_dap.c:176
@ CFG_INSTANCE_ID
Definition: arm_dap.c:178
@ CFG_CHAIN_POSITION
Definition: arm_dap.c:175
@ CFG_DP_ID
Definition: arm_dap.c:177
@ CFG_ADIV6
Definition: arm_dap.c:179
@ CFG_ADIV5
Definition: arm_dap.c:180
#define NULL
Definition: usb.h:16

Definition at line 153 of file arm_dap.c.

Referenced by dap_configure().

◆ swd_dap_ops

const struct dap_ops swd_dap_ops
extern

Definition at line 606 of file adi_v5_swd.c.

Referenced by dap_init_all().