OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | icdi_usb_handle_s |
Macros | |
#define | ICDI_PACKET_SIZE 2048 |
#define | ICDI_READ_ENDPOINT 0x83 |
#define | ICDI_READ_TIMEOUT (LIBUSB_TIMEOUT_MS) |
#define | ICDI_WRITE_ENDPOINT 0x02 |
#define | ICDI_WRITE_TIMEOUT (LIBUSB_TIMEOUT_MS) |
#define | PACKET_END "#" |
#define | PACKET_START "$" |
Functions | |
static int | icdi_get_cmd_result (void *handle) |
static int | icdi_send_cmd (void *handle, const char *cmd) |
static int | icdi_send_packet (void *handle, int len) |
static int | icdi_send_remote_cmd (void *handle, const char *data) |
static int | icdi_usb_assert_srst (void *handle, int srst) |
static int | icdi_usb_close (void *handle) |
static int | icdi_usb_halt (void *handle) |
static int | icdi_usb_idcode (void *handle, uint32_t *idcode) |
static int | icdi_usb_open (struct hl_interface_param_s *param, void **fd) |
static int | icdi_usb_override_target (const char *targetname) |
static int | icdi_usb_query (void *handle) |
static int | icdi_usb_read_mem (void *handle, uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer) |
static int | icdi_usb_read_mem_int (void *handle, uint32_t addr, uint32_t len, uint8_t *buffer) |
static int | icdi_usb_read_reg (void *handle, unsigned int regsel, uint32_t *val) |
static int | icdi_usb_read_regs (void *handle) |
static int | icdi_usb_reset (void *handle) |
static int | icdi_usb_run (void *handle) |
static enum target_state | icdi_usb_state (void *handle) |
static int | icdi_usb_step (void *handle) |
static int | icdi_usb_version (void *handle) |
static int | icdi_usb_write_debug_reg (void *handle, uint32_t addr, uint32_t val) |
static int | icdi_usb_write_mem (void *handle, uint32_t addr, uint32_t size, uint32_t count, const uint8_t *buffer) |
static int | icdi_usb_write_mem_int (void *handle, uint32_t addr, uint32_t len, const uint8_t *buffer) |
static int | icdi_usb_write_reg (void *handle, unsigned int regsel, uint32_t val) |
static int | remote_escape_output (const char *buffer, int len, char *out_buf, int *out_len, int out_maxlen) |
static int | remote_unescape_input (const char *buffer, int len, char *out_buf, int out_maxlen) |
Variables | |
struct hl_layout_api_s | icdi_usb_layout_api |
#define ICDI_PACKET_SIZE 2048 |
Definition at line 31 of file ti_icdi_usb.c.
#define ICDI_READ_ENDPOINT 0x83 |
Definition at line 27 of file ti_icdi_usb.c.
#define ICDI_READ_TIMEOUT (LIBUSB_TIMEOUT_MS) |
Definition at line 30 of file ti_icdi_usb.c.
#define ICDI_WRITE_ENDPOINT 0x02 |
Definition at line 26 of file ti_icdi_usb.c.
#define ICDI_WRITE_TIMEOUT (LIBUSB_TIMEOUT_MS) |
Definition at line 29 of file ti_icdi_usb.c.
#define PACKET_END "#" |
Definition at line 34 of file ti_icdi_usb.c.
#define PACKET_START "$" |
Definition at line 33 of file ti_icdi_usb.c.
|
static |
Definition at line 240 of file ti_icdi_usb.c.
References ERROR_FAIL, ERROR_OK, offset, icdi_usb_handle_s::read_buffer, icdi_usb_handle_s::read_count, and unhexify().
Referenced by icdi_usb_halt(), icdi_usb_query(), icdi_usb_read_mem_int(), icdi_usb_read_reg(), icdi_usb_run(), icdi_usb_step(), icdi_usb_write_mem_int(), and icdi_usb_write_reg().
|
static |
Definition at line 221 of file ti_icdi_usb.c.
References cmd, icdi_send_packet(), icdi_usb_handle_s::max_packet, PACKET_START, and icdi_usb_handle_s::write_buffer.
Referenced by icdi_usb_halt(), icdi_usb_query(), icdi_usb_read_mem_int(), icdi_usb_read_reg(), icdi_usb_run(), icdi_usb_step(), and icdi_usb_write_reg().
|
static |
Definition at line 108 of file ti_icdi_usb.c.
References buffer, ERROR_FAIL, ERROR_OK, ICDI_READ_ENDPOINT, ICDI_READ_TIMEOUT, ICDI_WRITE_ENDPOINT, ICDI_WRITE_TIMEOUT, LOG_DEBUG, LOG_ERROR, icdi_usb_handle_s::max_packet, PACKET_END, icdi_usb_handle_s::read_buffer, icdi_usb_handle_s::read_count, icdi_usb_handle_s::usb_dev, and icdi_usb_handle_s::write_buffer.
Referenced by icdi_send_cmd(), icdi_send_remote_cmd(), and icdi_usb_write_mem_int().
|
static |
Definition at line 229 of file ti_icdi_usb.c.
References hexify(), icdi_send_packet(), icdi_usb_handle_s::max_packet, PACKET_START, and icdi_usb_handle_s::write_buffer.
Referenced by icdi_usb_version().
|
static |
Definition at line 399 of file ti_icdi_usb.c.
References ERROR_COMMAND_NOTFOUND.
|
static |
Definition at line 641 of file ti_icdi_usb.c.
References ERROR_OK, jtag_libusb_close(), icdi_usb_handle_s::read_buffer, icdi_usb_handle_s::usb_dev, and icdi_usb_handle_s::write_buffer.
|
static |
Definition at line 424 of file ti_icdi_usb.c.
References ERROR_FAIL, ERROR_OK, icdi_get_cmd_result(), icdi_send_cmd(), and LOG_ERROR.
|
static |
Definition at line 269 of file ti_icdi_usb.c.
References ERROR_OK.
|
static |
Definition at line 657 of file ti_icdi_usb.c.
|
static |
Definition at line 636 of file ti_icdi_usb.c.
|
static |
Definition at line 334 of file ti_icdi_usb.c.
References ERROR_FAIL, ERROR_OK, icdi_get_cmd_result(), ICDI_PACKET_SIZE, icdi_send_cmd(), LOG_DEBUG, LOG_ERROR, icdi_usb_handle_s::max_packet, offset, icdi_usb_handle_s::read_buffer, and icdi_usb_handle_s::write_buffer.
|
static |
Definition at line 580 of file ti_icdi_usb.c.
References addr, buffer, count, ERROR_OK, icdi_usb_read_mem_int(), icdi_usb_handle_s::max_rw_packet, and size.
|
static |
Definition at line 521 of file ti_icdi_usb.c.
References addr, buffer, cmd, ERROR_FAIL, ERROR_OK, icdi_get_cmd_result(), icdi_send_cmd(), LOG_ERROR, icdi_usb_handle_s::read_buffer, icdi_usb_handle_s::read_count, and remote_unescape_input().
Referenced by icdi_usb_read_mem().
|
static |
Definition at line 468 of file ti_icdi_usb.c.
References cmd, ERROR_FAIL, ERROR_OK, icdi_get_cmd_result(), icdi_send_cmd(), le_to_h_u32(), LOG_ERROR, icdi_usb_handle_s::read_buffer, and unhexify().
|
static |
Definition at line 462 of file ti_icdi_usb.c.
References ERROR_OK.
|
static |
Definition at line 393 of file ti_icdi_usb.c.
References ERROR_OK.
|
static |
Definition at line 405 of file ti_icdi_usb.c.
References ERROR_FAIL, ERROR_OK, icdi_get_cmd_result(), icdi_send_cmd(), and LOG_ERROR.
|
static |
Definition at line 275 of file ti_icdi_usb.c.
References addr, h_u32_to_le(), and icdi_usb_write_mem().
|
static |
Definition at line 443 of file ti_icdi_usb.c.
References ERROR_FAIL, ERROR_OK, icdi_get_cmd_result(), icdi_send_cmd(), and LOG_ERROR.
|
static |
Definition at line 304 of file ti_icdi_usb.c.
References ERROR_FAIL, ERROR_OK, icdi_send_remote_cmd(), LOG_ERROR, LOG_INFO, LOG_WARNING, icdi_usb_handle_s::read_buffer, icdi_usb_handle_s::read_count, and unhexify().
|
static |
Definition at line 275 of file ti_icdi_usb.c.
|
static |
Definition at line 608 of file ti_icdi_usb.c.
References addr, buffer, count, ERROR_OK, icdi_usb_write_mem_int(), icdi_usb_handle_s::max_rw_packet, and size.
Referenced by icdi_usb_state().
|
static |
Definition at line 549 of file ti_icdi_usb.c.
References addr, buffer, ERROR_FAIL, ERROR_OK, icdi_get_cmd_result(), icdi_send_packet(), LOG_ERROR, icdi_usb_handle_s::max_packet, PACKET_START, remote_escape_output(), and icdi_usb_handle_s::write_buffer.
Referenced by icdi_usb_write_mem().
|
static |
Definition at line 497 of file ti_icdi_usb.c.
References cmd, ERROR_FAIL, ERROR_OK, h_u32_to_le(), hexify(), icdi_get_cmd_result(), icdi_send_cmd(), and LOG_ERROR.
|
static |
Definition at line 51 of file ti_icdi_usb.c.
References buffer.
Referenced by icdi_usb_write_mem_int().
|
static |
Definition at line 78 of file ti_icdi_usb.c.
References buffer, and LOG_ERROR.
Referenced by icdi_usb_read_mem_int().
struct hl_layout_api_s icdi_usb_layout_api |
Definition at line 657 of file ti_icdi_usb.c.