OpenOCD
|
Go to the source code of this file.
Functions | |
COMMAND_HANDLER (hl_interface_handle_device_desc_command) | |
COMMAND_HANDLER (hl_interface_handle_layout_command) | |
COMMAND_HANDLER (hl_interface_handle_stlink_backend_command) | |
COMMAND_HANDLER (hl_interface_handle_vid_pid_command) | |
COMMAND_HANDLER (interface_handle_hla_command) | |
static int | hl_interface_config_trace (bool enabled, enum tpiu_pin_protocol pin_protocol, uint32_t port_size, unsigned int *trace_freq, unsigned int traceclkin_freq, uint16_t *prescaler) |
static int | hl_interface_init (void) |
int | hl_interface_init_reset (void) |
int | hl_interface_init_target (struct target *t) |
static int | hl_interface_khz (int khz, int *jtag_speed) |
int | hl_interface_open (enum hl_transports tr) |
int | hl_interface_override_target (const char **targetname) |
static int | hl_interface_poll_trace (uint8_t *buf, size_t *size) |
static int | hl_interface_quit (void) |
static int | hl_interface_reset (int req_trst, int req_srst) |
static int | hl_interface_speed (int speed) |
static int | hl_interface_speed_div (int speed, int *khz) |
Variables | |
struct adapter_driver | hl_adapter_driver |
static struct hl_interface | hl_if |
static const struct command_registration | hl_interface_command_handlers [] |
static const struct command_registration | hl_interface_subcommand_handlers [] |
COMMAND_HANDLER | ( | hl_interface_handle_device_desc_command | ) |
Definition at line 214 of file hla_interface.c.
References CMD_ARGC, CMD_ARGV, hl_interface_param::device_desc, ERROR_OK, hl_if, LOG_DEBUG, LOG_ERROR, and hl_interface::param.
COMMAND_HANDLER | ( | hl_interface_handle_layout_command | ) |
Definition at line 227 of file hla_interface.c.
References CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, hl_if, hl_layout_get_list(), hl_interface::layout, LOG_DEBUG, LOG_ERROR, and hl_layout::name.
COMMAND_HANDLER | ( | hl_interface_handle_stlink_backend_command | ) |
Definition at line 282 of file hla_interface.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, hl_if, hl_interface::param, hl_interface_param::stlink_tcp_port, and hl_interface_param::use_stlink_tcp.
COMMAND_HANDLER | ( | hl_interface_handle_vid_pid_command | ) |
Definition at line 255 of file hla_interface.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, hl_if, HLA_MAX_USB_IDS, LOG_WARNING, hl_interface::param, hl_interface_param::pid, and hl_interface_param::vid.
COMMAND_HANDLER | ( | interface_handle_hla_command | ) |
Definition at line 307 of file hla_interface.c.
References hl_layout::api, CMD_ARGC, CMD_ARGV, hl_layout_api::custom_command, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, hl_interface::handle, hl_if, hl_interface::layout, and LOG_ERROR.
|
static |
Definition at line 191 of file hla_interface.c.
References hl_layout::api, hl_layout_api::config_trace, ERROR_FAIL, ERROR_OK, hl_interface::handle, hl_if, hl_interface::layout, and LOG_ERROR.
|
static |
Definition at line 108 of file hla_interface.c.
References hl_if, hl_layout_init(), and LOG_DEBUG.
int hl_interface_init_reset | ( | void | ) |
Definition at line 135 of file hla_interface.c.
References adapter_assert_reset(), adapter_deassert_reset(), hl_interface_param::connect_under_reset, ERROR_OK, hl_if, and hl_interface::param.
Referenced by COMMAND_HANDLER(), and hl_interface_open().
int hl_interface_init_target | ( | struct target * | t | ) |
Definition at line 64 of file hla_interface.c.
References hl_layout::api, ERROR_FAIL, ERROR_OK, jtag_tap::expected_ids, jtag_tap::expected_ids_cnt, hl_interface::handle, jtag_tap::has_idcode, hl_if, hl_layout_api::idcode, jtag_tap::idcode, hl_interface::layout, LOG_DEBUG, LOG_ERROR, LOG_WARNING, jtag_tap::priv, and target::tap.
Referenced by hl_transport_init().
|
static |
Definition at line 148 of file hla_interface.c.
References hl_layout::api, ERROR_OK, hl_interface::handle, hl_if, hl_interface::layout, and hl_layout_api::speed.
int hl_interface_open | ( | enum hl_transports | tr | ) |
Definition at line 41 of file hla_interface.c.
References hl_interface_param::connect_under_reset, ERROR_OK, hl_if, hl_interface_init_reset(), jtag_get_reset_config(), jtag_reset_config, hl_interface::layout, LOG_DEBUG, LOG_WARNING, hl_layout::open, hl_interface::param, RESET_CNCT_UNDER_SRST, RESET_SRST_NO_GATING, and hl_interface_param::transport.
Referenced by hl_transport_init().
int hl_interface_override_target | ( | const char ** | targetname | ) |
Definition at line 179 of file hla_interface.c.
References hl_layout::api, ERROR_FAIL, ERROR_OK, hl_if, hl_interface::layout, and hl_layout_api::override_target.
|
static |
Definition at line 206 of file hla_interface.c.
References hl_layout::api, ERROR_FAIL, hl_interface::handle, hl_if, hl_interface::layout, hl_layout_api::poll_trace, and size.
|
static |
Definition at line 116 of file hla_interface.c.
References hl_layout::api, hl_layout_api::close, hl_interface_param::device_desc, ERROR_OK, hl_interface::handle, hl_if, jtag_command_queue_reset(), hl_interface::layout, LOG_DEBUG, and hl_interface::param.
|
static |
Definition at line 130 of file hla_interface.c.
References hl_layout::api, hl_layout_api::assert_srst, hl_interface::handle, hl_if, and hl_interface::layout.
|
static |
Definition at line 163 of file hla_interface.c.
References hl_layout::api, ERROR_OK, hl_interface::handle, hl_if, hl_interface_param::initial_interface_speed, hl_interface::layout, hl_interface::param, and hl_layout_api::speed.
|
static |
Definition at line 157 of file hla_interface.c.
References ERROR_OK.
struct adapter_driver hl_adapter_driver |
Definition at line 307 of file hla_interface.c.
|
static |
Definition at line 1 of file hla_interface.c.
Referenced by COMMAND_HANDLER(), hl_dcc_read(), hl_handle_target_request(), hl_interface_config_trace(), hl_interface_init(), hl_interface_init_reset(), hl_interface_init_target(), hl_interface_khz(), hl_interface_open(), hl_interface_override_target(), hl_interface_poll_trace(), hl_interface_quit(), hl_interface_reset(), hl_interface_speed(), and hl_target_request_data().
|
static |
Definition at line 307 of file hla_interface.c.
|
static |
Definition at line 307 of file hla_interface.c.