OpenOCD
|
Go to the source code of this file.
Macros | |
#define | REMOTE_BITBANG_HOST_MAX 255 |
Enumerations | |
enum | block_bool { NO_BLOCK , BLOCK } |
enum | flush_bool_t { NO_FLUSH , FLUSH_SEND_BUF } |
Functions | |
static bb_value_t | char_to_int (int c) |
COMMAND_HANDLER (remote_bitbang_handle_remote_bitbang_host_command) | |
COMMAND_HANDLER (remote_bitbang_handle_remote_bitbang_port_command) | |
COMMAND_HANDLER (remote_bitbang_handle_remote_bitbang_use_remote_sleep_command) | |
static int | remote_bitbang_blink (bool on) |
static int | remote_bitbang_execute_queue (struct jtag_command *cmd_queue) |
static int | remote_bitbang_fill_buf (enum block_bool block) |
static int | remote_bitbang_flush (void) |
static int | remote_bitbang_init (void) |
static int | remote_bitbang_init_tcp (void) |
static int | remote_bitbang_init_unix (void) |
static int | remote_bitbang_queue (int c, flush_bool_t flush) |
static int | remote_bitbang_quit (void) |
static bb_value_t | remote_bitbang_read_sample (void) |
static unsigned int | remote_bitbang_recv_buf_contiguous_available_space (void) |
static bool | remote_bitbang_recv_buf_empty (void) |
static bool | remote_bitbang_recv_buf_full (void) |
static int | remote_bitbang_reset (int trst, int srst) |
static int | remote_bitbang_sample (void) |
static int | remote_bitbang_sleep (unsigned int microseconds) |
static int | remote_bitbang_swd_write (int swclk, int swdio) |
static void | remote_bitbang_swdio_drive (bool is_output) |
static int | remote_bitbang_swdio_read (void) |
static int | remote_bitbang_write (int tck, int tms, int tdi) |
Variables | |
struct adapter_driver | remote_bitbang_adapter_driver |
static struct bitbang_interface | remote_bitbang_bitbang |
static const struct command_registration | remote_bitbang_command_handlers [] |
static int | remote_bitbang_fd |
static char * | remote_bitbang_host |
static struct jtag_interface | remote_bitbang_interface |
static char * | remote_bitbang_port |
static char | remote_bitbang_recv_buf [256] |
static unsigned int | remote_bitbang_recv_buf_end |
static unsigned int | remote_bitbang_recv_buf_start |
static uint8_t | remote_bitbang_send_buf [512] |
static unsigned int | remote_bitbang_send_buf_used |
static const struct command_registration | remote_bitbang_subcommand_handlers [] |
static const char *const | remote_bitbang_transports [] = { "jtag", "swd", NULL } |
static bool | use_remote_sleep |
#define REMOTE_BITBANG_HOST_MAX 255 |
Definition at line 25 of file remote_bitbang.c.
enum block_bool |
Enumerator | |
---|---|
NO_BLOCK | |
BLOCK |
Definition at line 87 of file remote_bitbang.c.
enum flush_bool_t |
Enumerator | |
---|---|
NO_FLUSH | |
FLUSH_SEND_BUF |
Definition at line 148 of file remote_bitbang.c.
|
static |
Definition at line 179 of file remote_bitbang.c.
References BB_ERROR, BB_HIGH, BB_LOW, LOG_ERROR, and remote_bitbang_quit().
Referenced by remote_bitbang_read_sample().
COMMAND_HANDLER | ( | remote_bitbang_handle_remote_bitbang_host_command | ) |
Definition at line 405 of file remote_bitbang.c.
References CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, and remote_bitbang_host.
COMMAND_HANDLER | ( | remote_bitbang_handle_remote_bitbang_port_command | ) |
Definition at line 393 of file remote_bitbang.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, NULL, and remote_bitbang_port.
COMMAND_HANDLER | ( | remote_bitbang_handle_remote_bitbang_use_remote_sleep_command | ) |
Definition at line 417 of file remote_bitbang.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_ON_OFF, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, and use_remote_sleep.
|
static |
Definition at line 254 of file remote_bitbang.c.
References FLUSH_SEND_BUF, and remote_bitbang_queue().
|
static |
Definition at line 466 of file remote_bitbang.c.
|
static |
Definition at line 93 of file remote_bitbang.c.
References BLOCK, count, ERROR_FAIL, ERROR_OK, LOG_ERROR, log_socket_error(), read_socket(), remote_bitbang_fd, remote_bitbang_flush(), remote_bitbang_recv_buf, remote_bitbang_recv_buf_contiguous_available_space(), remote_bitbang_recv_buf_empty(), remote_bitbang_recv_buf_end, remote_bitbang_recv_buf_full(), remote_bitbang_recv_buf_start, socket_block(), and socket_nonblock().
Referenced by remote_bitbang_read_sample(), and remote_bitbang_sample().
|
static |
Definition at line 67 of file remote_bitbang.c.
References ERROR_FAIL, ERROR_OK, log_socket_error(), offset, remote_bitbang_fd, remote_bitbang_send_buf, remote_bitbang_send_buf_used, and write_socket().
Referenced by remote_bitbang_fill_buf(), remote_bitbang_queue(), and remote_bitbang_sleep().
|
static |
Definition at line 371 of file remote_bitbang.c.
References ERROR_OK, LOG_INFO, remote_bitbang_bitbang, remote_bitbang_fd, remote_bitbang_init_tcp(), remote_bitbang_init_unix(), remote_bitbang_port, remote_bitbang_recv_buf_end, remote_bitbang_recv_buf_start, and socket_nonblock().
|
static |
Definition at line 294 of file remote_bitbang.c.
References ERROR_FAIL, LOG_ERROR, LOG_INFO, log_socket_error(), remote_bitbang_host, and remote_bitbang_port.
Referenced by remote_bitbang_init().
|
static |
Definition at line 344 of file remote_bitbang.c.
References addr, ERROR_FAIL, LOG_ERROR, LOG_INFO, log_socket_error(), and remote_bitbang_host.
Referenced by remote_bitbang_init().
|
static |
Definition at line 153 of file remote_bitbang.c.
References ARRAY_SIZE, ERROR_OK, FLUSH_SEND_BUF, remote_bitbang_flush(), remote_bitbang_send_buf, and remote_bitbang_send_buf_used.
Referenced by remote_bitbang_blink(), remote_bitbang_quit(), remote_bitbang_reset(), remote_bitbang_sample(), remote_bitbang_sleep(), remote_bitbang_swdio_drive(), remote_bitbang_swdio_read(), and remote_bitbang_write().
|
static |
Definition at line 162 of file remote_bitbang.c.
References close_socket(), ERROR_FAIL, ERROR_OK, FLUSH_SEND_BUF, LOG_INFO, log_socket_error(), remote_bitbang_fd, remote_bitbang_host, remote_bitbang_port, and remote_bitbang_queue().
Referenced by char_to_int().
|
static |
Definition at line 201 of file remote_bitbang.c.
References BB_ERROR, BLOCK, char_to_int(), ERROR_OK, remote_bitbang_fill_buf(), remote_bitbang_recv_buf, remote_bitbang_recv_buf_empty(), and remote_bitbang_recv_buf_start.
Referenced by remote_bitbang_swdio_read().
|
static |
Definition at line 53 of file remote_bitbang.c.
References remote_bitbang_recv_buf, remote_bitbang_recv_buf_end, and remote_bitbang_recv_buf_start.
Referenced by remote_bitbang_fill_buf().
|
static |
Definition at line 48 of file remote_bitbang.c.
References remote_bitbang_recv_buf_end, and remote_bitbang_recv_buf_start.
Referenced by remote_bitbang_fill_buf(), and remote_bitbang_read_sample().
|
static |
Definition at line 41 of file remote_bitbang.c.
References remote_bitbang_recv_buf, remote_bitbang_recv_buf_end, and remote_bitbang_recv_buf_start.
Referenced by remote_bitbang_fill_buf(), and remote_bitbang_sample().
|
static |
Definition at line 220 of file remote_bitbang.c.
References FLUSH_SEND_BUF, and remote_bitbang_queue().
|
static |
Definition at line 193 of file remote_bitbang.c.
References ERROR_FAIL, ERROR_OK, NO_BLOCK, NO_FLUSH, remote_bitbang_fill_buf(), remote_bitbang_queue(), and remote_bitbang_recv_buf_full().
|
static |
Definition at line 228 of file remote_bitbang.c.
References ERROR_OK, jtag_sleep(), NO_FLUSH, remote_bitbang_flush(), remote_bitbang_queue(), and use_remote_sleep.
|
static |
Definition at line 275 of file remote_bitbang.c.
|
static |
Definition at line 260 of file remote_bitbang.c.
References ERROR_FAIL, FLUSH_SEND_BUF, LOG_ERROR, and remote_bitbang_queue().
|
static |
Definition at line 267 of file remote_bitbang.c.
References BB_ERROR, ERROR_FAIL, FLUSH_SEND_BUF, remote_bitbang_queue(), and remote_bitbang_read_sample().
|
static |
Definition at line 214 of file remote_bitbang.c.
References NO_FLUSH, and remote_bitbang_queue().
struct adapter_driver remote_bitbang_adapter_driver |
Definition at line 466 of file remote_bitbang.c.
|
static |
Definition at line 275 of file remote_bitbang.c.
Referenced by remote_bitbang_init().
|
static |
Definition at line 417 of file remote_bitbang.c.
|
static |
Definition at line 30 of file remote_bitbang.c.
Referenced by remote_bitbang_fill_buf(), remote_bitbang_flush(), remote_bitbang_init(), and remote_bitbang_quit().
|
static |
Definition at line 27 of file remote_bitbang.c.
Referenced by COMMAND_HANDLER(), remote_bitbang_init_tcp(), remote_bitbang_init_unix(), and remote_bitbang_quit().
|
static |
Definition at line 466 of file remote_bitbang.c.
|
static |
Definition at line 28 of file remote_bitbang.c.
Referenced by COMMAND_HANDLER(), remote_bitbang_init(), remote_bitbang_init_tcp(), and remote_bitbang_quit().
|
static |
Definition at line 37 of file remote_bitbang.c.
Referenced by remote_bitbang_fill_buf(), remote_bitbang_read_sample(), remote_bitbang_recv_buf_contiguous_available_space(), and remote_bitbang_recv_buf_full().
|
static |
Definition at line 39 of file remote_bitbang.c.
Referenced by remote_bitbang_fill_buf(), remote_bitbang_init(), remote_bitbang_recv_buf_contiguous_available_space(), remote_bitbang_recv_buf_empty(), and remote_bitbang_recv_buf_full().
|
static |
Definition at line 38 of file remote_bitbang.c.
Referenced by remote_bitbang_fill_buf(), remote_bitbang_init(), remote_bitbang_read_sample(), remote_bitbang_recv_buf_contiguous_available_space(), remote_bitbang_recv_buf_empty(), and remote_bitbang_recv_buf_full().
|
static |
Definition at line 31 of file remote_bitbang.c.
Referenced by remote_bitbang_flush(), and remote_bitbang_queue().
|
static |
Definition at line 32 of file remote_bitbang.c.
Referenced by remote_bitbang_flush(), and remote_bitbang_queue().
|
static |
Definition at line 417 of file remote_bitbang.c.
|
static |
Definition at line 415 of file remote_bitbang.c.
|
static |
Definition at line 34 of file remote_bitbang.c.
Referenced by COMMAND_HANDLER(), and remote_bitbang_sleep().