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)
 
 COMMAND_HANDLER (handle_dap_names)
 
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 LIST_HEAD (all_dap)
 

Variables

struct adapter_driveradapter_driver
 
static const struct command_registration dap_commands []
 
static const struct command_registration dap_subcommand_handlers []
 
static const struct jim_nvp nvp_config_opts []
 

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 181 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 66 of file arm_dap.c.

References arm_dap_object::dap.

Referenced by COMMAND_HANDLER().

◆ COMMAND_HANDLER() [1/3]

◆ COMMAND_HANDLER() [2/3]

COMMAND_HANDLER ( handle_dap_init  )

Definition at line 443 of file arm_dap.c.

References dap_init_all().

◆ COMMAND_HANDLER() [3/3]

COMMAND_HANDLER ( handle_dap_names  )

◆ 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 70 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 539 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

◆ LIST_HEAD()

static LIST_HEAD ( all_dap  )
static

Variable Documentation

◆ adapter_driver

Definition at line 26 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:495
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:253
@ COMMAND_CONFIG
Definition: command.h:41
const char * usage
a string listing the options and arguments, required or optional
Definition: command.h:241

Definition at line 448 of file arm_dap.c.

◆ dap_subcommand_handlers

const struct command_registration dap_subcommand_handlers[]
static

Definition at line 448 of file arm_dap.c.

◆ 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:183
@ CFG_INSTANCE_ID
Definition: arm_dap.c:185
@ CFG_CHAIN_POSITION
Definition: arm_dap.c:182
@ CFG_DP_ID
Definition: arm_dap.c:184
@ CFG_ADIV6
Definition: arm_dap.c:186
@ CFG_ADIV5
Definition: arm_dap.c:187
#define NULL
Definition: usb.h:16

Definition at line 160 of file arm_dap.c.

Referenced by dap_configure().