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_s | hl_if |
static const struct command_registration | hl_interface_command_handlers [] |
COMMAND_HANDLER | ( | hl_interface_handle_device_desc_command | ) |
Definition at line 215 of file hla_interface.c.
References CMD_ARGC, CMD_ARGV, hl_interface_param_s::device_desc, ERROR_OK, hl_if, LOG_DEBUG, LOG_ERROR, and hl_interface_s::param.
COMMAND_HANDLER | ( | hl_interface_handle_layout_command | ) |
Definition at line 228 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_s::layout, LOG_DEBUG, LOG_ERROR, and hl_layout::name.
COMMAND_HANDLER | ( | hl_interface_handle_stlink_backend_command | ) |
Definition at line 283 of file hla_interface.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, hl_if, hl_interface_s::param, hl_interface_param_s::stlink_tcp_port, and hl_interface_param_s::use_stlink_tcp.
COMMAND_HANDLER | ( | hl_interface_handle_vid_pid_command | ) |
Definition at line 256 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_s::param, hl_interface_param_s::pid, and hl_interface_param_s::vid.
COMMAND_HANDLER | ( | interface_handle_hla_command | ) |
Definition at line 308 of file hla_interface.c.
References hl_layout::api, CMD_ARGC, CMD_ARGV, hl_layout_api_s::custom_command, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, hl_interface_s::handle, hl_if, hl_interface_s::layout, and LOG_ERROR.
|
static |
Definition at line 192 of file hla_interface.c.
References hl_layout::api, hl_layout_api_s::config_trace, ERROR_FAIL, ERROR_OK, hl_interface_s::handle, hl_if, hl_interface_s::layout, and LOG_ERROR.
|
static |
Definition at line 109 of file hla_interface.c.
References hl_if, hl_layout_init(), and LOG_DEBUG.
int hl_interface_init_reset | ( | void | ) |
Definition at line 136 of file hla_interface.c.
References adapter_assert_reset(), adapter_deassert_reset(), hl_interface_param_s::connect_under_reset, ERROR_OK, hl_if, and hl_interface_s::param.
Referenced by COMMAND_HANDLER(), and hl_interface_open().
int hl_interface_init_target | ( | struct target * | t | ) |
Definition at line 65 of file hla_interface.c.
References hl_layout::api, ERROR_FAIL, ERROR_OK, jtag_tap::expected_ids, jtag_tap::expected_ids_cnt, hl_interface_s::handle, jtag_tap::hasidcode, hl_if, hl_layout_api_s::idcode, jtag_tap::idcode, hl_interface_s::layout, LOG_DEBUG, LOG_ERROR, LOG_WARNING, jtag_tap::priv, and target::tap.
Referenced by hl_transport_init().
|
static |
Definition at line 149 of file hla_interface.c.
References hl_layout::api, ERROR_OK, hl_interface_s::handle, hl_if, hl_interface_s::layout, and hl_layout_api_s::speed.
int hl_interface_open | ( | enum hl_transports | tr | ) |
Definition at line 42 of file hla_interface.c.
References hl_interface_param_s::connect_under_reset, ERROR_OK, hl_if, hl_interface_init_reset(), jtag_get_reset_config(), jtag_reset_config, hl_interface_s::layout, LOG_DEBUG, LOG_WARNING, hl_layout::open, hl_interface_s::param, RESET_CNCT_UNDER_SRST, RESET_SRST_NO_GATING, and hl_interface_param_s::transport.
Referenced by hl_transport_init().
int hl_interface_override_target | ( | const char ** | targetname | ) |
Definition at line 180 of file hla_interface.c.
References hl_layout::api, ERROR_FAIL, ERROR_OK, hl_if, hl_interface_s::layout, and hl_layout_api_s::override_target.
|
static |
Definition at line 207 of file hla_interface.c.
References hl_layout::api, ERROR_FAIL, hl_interface_s::handle, hl_if, hl_interface_s::layout, hl_layout_api_s::poll_trace, and size.
|
static |
Definition at line 117 of file hla_interface.c.
References hl_layout::api, hl_layout_api_s::close, hl_interface_param_s::device_desc, ERROR_OK, hl_interface_s::handle, hl_if, jtag_command_queue_reset(), hl_interface_s::layout, LOG_DEBUG, and hl_interface_s::param.
|
static |
Definition at line 131 of file hla_interface.c.
References hl_layout::api, hl_layout_api_s::assert_srst, hl_interface_s::handle, hl_if, and hl_interface_s::layout.
|
static |
Definition at line 164 of file hla_interface.c.
References hl_layout::api, ERROR_OK, hl_interface_s::handle, hl_if, hl_interface_param_s::initial_interface_speed, hl_interface_s::layout, hl_interface_s::param, and hl_layout_api_s::speed.
|
static |
Definition at line 158 of file hla_interface.c.
References ERROR_OK.
struct adapter_driver hl_adapter_driver |
Definition at line 308 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 308 of file hla_interface.c.