OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | pending_scan_result |
Macros | |
#define | B1000000 0010010 |
#define | BUSPIRATE_BUFFER_SIZE 1024 |
#define | BUSPIRATE_MAX_PENDING_SCANS 128 |
#define | BYTES_PER_LINE 16 |
#define | CMD_ENTER_OOCD 0x06 |
#define | CMD_ENTER_RWIRE 0x05 |
#define | CMD_FEATURE 0x02 |
#define | CMD_JTAG_SPEED 0x08 |
#define | CMD_PORT_MODE 0x01 |
#define | CMD_RAW_CONFIG_2W 0x00 |
#define | CMD_RAW_CONFIG_3V3 0x08 |
#define | CMD_RAW_CONFIG_3W 0x04 |
#define | CMD_RAW_CONFIG_HIZ 0x00 |
#define | CMD_RAW_CONFIG_LSB 0x02 |
#define | CMD_RAW_CONFIG_MSB 0x00 |
#define | CMD_RAW_MODE 0x80 |
#define | CMD_RAW_PERIPH 0x40 |
#define | CMD_RAW_SPEED 0x60 |
#define | CMD_READ_ADCS 0x03 |
#define | CMD_TAP_SHIFT 0x05 |
#define | CMD_TAP_SHIFT_HEADER_LEN 3 |
#define | CMD_UART_SPEED 0x07 |
#define | CMD_UNKNOWN 0x00 |
#define | LINE_SIZE 81 |
#define | NORMAL_TIMEOUT 10 |
#define | SHORT_TIMEOUT 1 /* Must be at least 1. */ |
Enumerations | |
enum | { MODE_HIZ = 0 , MODE_JTAG = 1 , MODE_JTAG_OD = 2 } |
enum | { FEATURE_LED = 0x01 , FEATURE_VREG = 0x02 , FEATURE_TRST = 0x04 , FEATURE_SRST = 0x08 , FEATURE_PULLUP = 0x10 } |
enum | { ACTION_DISABLE = 0 , ACTION_ENABLE = 1 } |
enum | { SERIAL_NORMAL = 0 , SERIAL_FAST = 1 } |
enum | { SPEED_RAW_5_KHZ = 0x0 , SPEED_RAW_50_KHZ = 0x1 , SPEED_RAW_100_KHZ = 0x2 , SPEED_RAW_400_KHZ = 0x3 } |
Functions | |
static void | buspirate_bbio_enable (int) |
static void | buspirate_end_state (tap_state_t state) |
static int | buspirate_execute_queue (struct jtag_command *cmd_queue) |
static int | buspirate_init (void) |
static unsigned char | buspirate_jtag_command (int, uint8_t *, int) |
static void | buspirate_jtag_get_adcs (int) |
static void | buspirate_jtag_reset (int) |
static void | buspirate_jtag_set_feature (int, char, char) |
static void | buspirate_jtag_set_mode (int, char) |
static void | buspirate_jtag_set_speed (int, char) |
static void | buspirate_path_move (unsigned int num_states, tap_state_t *path) |
static void | buspirate_print_buffer (uint8_t *buf, int size) |
static int | buspirate_quit (void) |
static int | buspirate_reset (int trst, int srst) |
static void | buspirate_runtest (unsigned int num_cycles) |
static void | buspirate_scan (bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size, struct scan_command *command) |
static void | buspirate_serial_close (int fd) |
static int | buspirate_serial_open (char *port) |
static int | buspirate_serial_read (int fd, uint8_t *buf, int size) |
static int | buspirate_serial_setspeed (int fd, char speed, cc_t timeout) |
static int | buspirate_serial_write (int fd, uint8_t *buf, int size) |
static void | buspirate_set_feature (int, char, char) |
static void | buspirate_set_mode (int, char) |
static void | buspirate_set_speed (int, char) |
static void | buspirate_stableclocks (unsigned int num_cycles) |
static void | buspirate_state_move (void) |
static void | buspirate_swd_clear_sticky_errors (void) |
static void | buspirate_swd_idle_clocks (uint32_t no_bits) |
static int | buspirate_swd_init (void) |
static void | buspirate_swd_read_reg (uint8_t cmd, uint32_t *value, uint32_t ap_delay_clk) |
static int | buspirate_swd_run_queue (void) |
static void | buspirate_swd_set_feature (int, char, char) |
static void | buspirate_swd_set_mode (int, char) |
static void | buspirate_swd_set_speed (int, char) |
static int | buspirate_swd_switch_seq (enum swd_special_seq seq) |
static uint8_t | buspirate_swd_write_header (uint8_t cmd) |
static void | buspirate_swd_write_reg (uint8_t cmd, uint32_t value, uint32_t ap_delay_clk) |
static void | buspirate_tap_append (int tms, int tdi) |
static void | buspirate_tap_append_scan (int length, uint8_t *buffer, struct scan_command *command) |
static int | buspirate_tap_execute (void) |
static void | buspirate_tap_init (void) |
static void | buspirate_tap_make_space (int scan, int bits) |
COMMAND_HANDLER (buspirate_handle_adc_command) | |
COMMAND_HANDLER (buspirate_handle_led_command) | |
COMMAND_HANDLER (buspirate_handle_mode_command) | |
COMMAND_HANDLER (buspirate_handle_port_command) | |
COMMAND_HANDLER (buspirate_handle_pullup_command) | |
COMMAND_HANDLER (buspirate_handle_speed_command) | |
COMMAND_HANDLER (buspirate_handle_vreg_command) | |
static bool | read_and_discard_all_data (const int fd) |
Variables | |
struct adapter_driver | buspirate_adapter_driver |
static int | buspirate_baudrate = SERIAL_NORMAL |
static const struct command_registration | buspirate_command_handlers [] |
static int | buspirate_fd = -1 |
static struct jtag_interface | buspirate_interface |
static int | buspirate_pinmode = MODE_JTAG_OD |
static char * | buspirate_port |
static int | buspirate_pullup |
static const struct command_registration | buspirate_subcommand_handlers [] |
static const struct swd_driver | buspirate_swd |
static const char *const | buspirate_transports [] = { "jtag", "swd", NULL } |
static int | buspirate_vreg |
static enum tap_state | last_tap_state = TAP_RESET |
static int | queued_retval |
static char | swd_features |
static bool | swd_mode |
static int | tap_chain_index |
static struct pending_scan_result | tap_pending_scans [BUSPIRATE_MAX_PENDING_SCANS] |
static int | tap_pending_scans_num |
static uint8_t | tdi_chain [BUSPIRATE_BUFFER_SIZE] |
static uint8_t | tms_chain [BUSPIRATE_BUFFER_SIZE] |
#define B1000000 0010010 |
Definition at line 62 of file buspirate.c.
#define BUSPIRATE_BUFFER_SIZE 1024 |
Definition at line 671 of file buspirate.c.
#define BUSPIRATE_MAX_PENDING_SCANS 128 |
Definition at line 682 of file buspirate.c.
#define BYTES_PER_LINE 16 |
Definition at line 1267 of file buspirate.c.
#define CMD_ENTER_OOCD 0x06 |
Definition at line 43 of file buspirate.c.
#define CMD_ENTER_RWIRE 0x05 |
Definition at line 42 of file buspirate.c.
#define CMD_FEATURE 0x02 |
Definition at line 38 of file buspirate.c.
#define CMD_JTAG_SPEED 0x08 |
Definition at line 45 of file buspirate.c.
#define CMD_PORT_MODE 0x01 |
Definition at line 37 of file buspirate.c.
#define CMD_RAW_CONFIG_2W 0x00 |
Definition at line 55 of file buspirate.c.
#define CMD_RAW_CONFIG_3V3 0x08 |
Definition at line 54 of file buspirate.c.
#define CMD_RAW_CONFIG_3W 0x04 |
Definition at line 56 of file buspirate.c.
#define CMD_RAW_CONFIG_HIZ 0x00 |
Definition at line 53 of file buspirate.c.
#define CMD_RAW_CONFIG_LSB 0x02 |
Definition at line 58 of file buspirate.c.
#define CMD_RAW_CONFIG_MSB 0x00 |
Definition at line 57 of file buspirate.c.
#define CMD_RAW_MODE 0x80 |
Definition at line 48 of file buspirate.c.
#define CMD_RAW_PERIPH 0x40 |
Definition at line 46 of file buspirate.c.
#define CMD_RAW_SPEED 0x60 |
Definition at line 47 of file buspirate.c.
#define CMD_READ_ADCS 0x03 |
Definition at line 39 of file buspirate.c.
#define CMD_TAP_SHIFT 0x05 |
Definition at line 41 of file buspirate.c.
#define CMD_TAP_SHIFT_HEADER_LEN 3 |
Definition at line 50 of file buspirate.c.
#define CMD_UART_SPEED 0x07 |
Definition at line 44 of file buspirate.c.
#define CMD_UNKNOWN 0x00 |
Definition at line 36 of file buspirate.c.
#define LINE_SIZE 81 |
Definition at line 1266 of file buspirate.c.
#define NORMAL_TIMEOUT 10 |
Definition at line 66 of file buspirate.c.
#define SHORT_TIMEOUT 1 /* Must be at least 1. */ |
Definition at line 65 of file buspirate.c.
anonymous enum |
Enumerator | |
---|---|
MODE_HIZ | |
MODE_JTAG | |
MODE_JTAG_OD |
Definition at line 68 of file buspirate.c.
anonymous enum |
Enumerator | |
---|---|
FEATURE_LED | |
FEATURE_VREG | |
FEATURE_TRST | |
FEATURE_SRST | |
FEATURE_PULLUP |
Definition at line 74 of file buspirate.c.
anonymous enum |
Enumerator | |
---|---|
ACTION_DISABLE | |
ACTION_ENABLE |
Definition at line 82 of file buspirate.c.
anonymous enum |
Enumerator | |
---|---|
SERIAL_NORMAL | |
SERIAL_FAST |
Definition at line 87 of file buspirate.c.
anonymous enum |
Enumerator | |
---|---|
SPEED_RAW_5_KHZ | |
SPEED_RAW_50_KHZ | |
SPEED_RAW_100_KHZ | |
SPEED_RAW_400_KHZ |
Definition at line 92 of file buspirate.c.
|
static |
Definition at line 977 of file buspirate.c.
References buspirate_serial_read(), buspirate_serial_write(), CMD_ENTER_OOCD, CMD_ENTER_RWIRE, LOG_DEBUG, LOG_ERROR, NULL, and swd_mode.
Referenced by buspirate_init().
|
static |
Definition at line 557 of file buspirate.c.
References LOG_ERROR, state, tap_is_state_stable(), and tap_set_end_state().
Referenced by buspirate_execute_queue(), buspirate_runtest(), and buspirate_scan().
|
static |
Definition at line 154 of file buspirate.c.
References buffer, buspirate_end_state(), buspirate_path_move(), buspirate_runtest(), buspirate_scan(), buspirate_stableclocks(), buspirate_state_move(), buspirate_tap_execute(), cmd, jtag_build_buffer(), JTAG_PATHMOVE, JTAG_RUNTEST, JTAG_SCAN, jtag_scan_type(), JTAG_SLEEP, jtag_sleep(), JTAG_STABLECLOCKS, JTAG_TLR_RESET, LOG_DEBUG_IO, LOG_ERROR, tap_state_name(), and type.
|
static |
Definition at line 275 of file buspirate.c.
References ACTION_DISABLE, ACTION_ENABLE, buspirate_baudrate, buspirate_bbio_enable(), buspirate_fd, buspirate_pinmode, buspirate_port, buspirate_pullup, buspirate_reset(), buspirate_serial_open(), buspirate_serial_setspeed(), buspirate_set_feature(), buspirate_set_mode(), buspirate_set_speed(), buspirate_tap_init(), buspirate_vreg, ERROR_JTAG_INIT_FAILED, ERROR_OK, FEATURE_PULLUP, FEATURE_VREG, LOG_ERROR, LOG_INFO, NORMAL_TIMEOUT, read_and_discard_all_data(), SERIAL_FAST, SERIAL_NORMAL, SHORT_TIMEOUT, and swd_mode.
|
static |
Definition at line 1122 of file buspirate.c.
References buspirate_serial_read(), buspirate_serial_write(), cmd, CMD_FEATURE, CMD_JTAG_SPEED, CMD_PORT_MODE, CMD_READ_ADCS, CMD_TAP_SHIFT, CMD_UART_SPEED, and LOG_INFO.
Referenced by buspirate_jtag_get_adcs(), buspirate_jtag_set_feature(), buspirate_jtag_set_mode(), and buspirate_jtag_set_speed().
|
static |
Definition at line 1105 of file buspirate.c.
References buspirate_jtag_command(), CMD_READ_ADCS, and LOG_INFO.
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 1038 of file buspirate.c.
References buspirate_serial_read(), buspirate_serial_write(), and LOG_ERROR.
Referenced by buspirate_quit().
|
static |
Definition at line 1096 of file buspirate.c.
References buspirate_jtag_command(), and CMD_FEATURE.
Referenced by buspirate_set_feature().
|
static |
Definition at line 1088 of file buspirate.c.
References buspirate_jtag_command(), CMD_PORT_MODE, and mode.
Referenced by buspirate_set_mode().
|
static |
Definition at line 1054 of file buspirate.c.
References buspirate_jtag_command(), buspirate_serial_read(), buspirate_serial_setspeed(), buspirate_serial_write(), CMD_UART_SPEED, LOG_ERROR, LOG_INFO, NORMAL_TIMEOUT, and SERIAL_NORMAL.
Referenced by buspirate_set_speed().
|
static |
Definition at line 583 of file buspirate.c.
References buspirate_tap_append(), LOG_ERROR, tap_get_state(), tap_set_end_state(), tap_set_state, tap_state_name(), and tap_state_transition().
Referenced by buspirate_execute_queue().
|
static |
Definition at line 1268 of file buspirate.c.
References BYTES_PER_LINE, LINE_SIZE, LOG_DEBUG, offset, and size.
Referenced by buspirate_serial_read(), and buspirate_serial_write().
|
static |
Definition at line 336 of file buspirate.c.
References buspirate_fd, buspirate_jtag_reset(), buspirate_port, buspirate_serial_close(), buspirate_set_mode(), buspirate_set_speed(), ERROR_OK, LOG_INFO, MODE_HIZ, NULL, and SERIAL_NORMAL.
|
static |
Definition at line 851 of file buspirate.c.
References ACTION_DISABLE, ACTION_ENABLE, buspirate_fd, buspirate_set_feature(), ERROR_OK, FEATURE_SRST, FEATURE_TRST, and LOG_DEBUG.
Referenced by buspirate_init().
|
static |
Definition at line 605 of file buspirate.c.
References buspirate_end_state(), buspirate_state_move(), buspirate_tap_append(), LOG_DEBUG_IO, tap_get_end_state(), tap_get_state(), TAP_IDLE, and tap_state_name().
Referenced by buspirate_execute_queue().
|
static |
Definition at line 628 of file buspirate.c.
References buffer, buspirate_end_state(), buspirate_state_move(), buspirate_tap_append(), buspirate_tap_append_scan(), buspirate_tap_make_space(), TAP_DRPAUSE, TAP_DRSHIFT, tap_get_end_state(), tap_get_state(), TAP_IRPAUSE, TAP_IRSHIFT, and tap_set_state.
Referenced by buspirate_execute_queue().
|
static |
Definition at line 1261 of file buspirate.c.
Referenced by buspirate_quit().
|
static |
Definition at line 1159 of file buspirate.c.
References buspirate_port.
Referenced by buspirate_init().
|
static |
Definition at line 1229 of file buspirate.c.
References buspirate_print_buffer(), LOG_DEBUG, LOG_ERROR, and size.
Referenced by buspirate_bbio_enable(), buspirate_jtag_command(), buspirate_jtag_reset(), buspirate_jtag_set_speed(), buspirate_swd_idle_clocks(), buspirate_swd_read_reg(), buspirate_swd_set_feature(), buspirate_swd_set_mode(), buspirate_swd_set_speed(), buspirate_swd_switch_seq(), buspirate_swd_write_header(), buspirate_swd_write_reg(), and buspirate_tap_execute().
|
static |
Definition at line 1169 of file buspirate.c.
References B1000000, and SERIAL_FAST.
Referenced by buspirate_init(), and buspirate_jtag_set_speed().
|
static |
Definition at line 1214 of file buspirate.c.
References buspirate_print_buffer(), LOG_DEBUG, LOG_ERROR, and size.
Referenced by buspirate_bbio_enable(), buspirate_jtag_command(), buspirate_jtag_reset(), buspirate_jtag_set_speed(), buspirate_swd_idle_clocks(), buspirate_swd_read_reg(), buspirate_swd_set_feature(), buspirate_swd_set_mode(), buspirate_swd_set_speed(), buspirate_swd_switch_seq(), buspirate_swd_write_header(), buspirate_swd_write_reg(), and buspirate_tap_execute().
|
static |
Definition at line 868 of file buspirate.c.
References buspirate_jtag_set_feature(), buspirate_swd_set_feature(), and swd_mode.
Referenced by buspirate_init(), buspirate_reset(), and COMMAND_HANDLER().
|
static |
Definition at line 876 of file buspirate.c.
References buspirate_jtag_set_mode(), buspirate_swd_set_mode(), mode, and swd_mode.
Referenced by buspirate_init(), and buspirate_quit().
|
static |
Definition at line 884 of file buspirate.c.
References buspirate_jtag_set_speed(), buspirate_swd_set_speed(), and swd_mode.
Referenced by buspirate_init(), and buspirate_quit().
|
static |
Definition at line 657 of file buspirate.c.
References buspirate_tap_append(), buspirate_tap_make_space(), tap_get_state(), and TAP_RESET.
Referenced by buspirate_execute_queue().
|
static |
Definition at line 567 of file buspirate.c.
References buspirate_tap_append(), tap_get_end_state(), tap_get_state(), tap_get_tms_path(), tap_get_tms_path_len(), and tap_set_state.
Referenced by buspirate_execute_queue(), buspirate_runtest(), and buspirate_scan().
|
static |
Definition at line 1398 of file buspirate.c.
References buspirate_swd_write_reg(), DP_ABORT, ORUNERRCLR, STKCMPCLR, STKERRCLR, swd_cmd(), and WDERRCLR.
Referenced by buspirate_swd_read_reg(), and buspirate_swd_write_reg().
|
static |
Definition at line 1373 of file buspirate.c.
References buspirate_fd, buspirate_serial_read(), and buspirate_serial_write().
Referenced by buspirate_swd_read_reg(), buspirate_swd_run_queue(), and buspirate_swd_write_reg().
|
static |
Definition at line 1293 of file buspirate.c.
|
static |
Definition at line 1404 of file buspirate.c.
References buspirate_fd, buspirate_serial_read(), buspirate_serial_write(), buspirate_swd_clear_sticky_errors(), buspirate_swd_idle_clocks(), buspirate_swd_write_header(), cmd, ERROR_FAIL, ERROR_OK, LOG_DEBUG, parity(), parity_u32(), queued_retval, SWD_ACK_FAULT, SWD_ACK_OK, SWD_ACK_WAIT, SWD_CMD_A32, SWD_CMD_APNDP, SWD_CMD_PARK, SWD_CMD_RNW, and SWD_CMD_START.
|
static |
Definition at line 1522 of file buspirate.c.
References buspirate_swd_idle_clocks(), ERROR_OK, LOG_DEBUG, and queued_retval.
|
static |
Definition at line 939 of file buspirate.c.
References ACTION_ENABLE, buspirate_serial_read(), buspirate_serial_write(), CMD_RAW_PERIPH, FEATURE_LED, FEATURE_PULLUP, FEATURE_SRST, FEATURE_TRST, FEATURE_VREG, LOG_DEBUG, LOG_ERROR, and swd_features.
Referenced by buspirate_set_feature().
|
static |
Definition at line 916 of file buspirate.c.
References buspirate_serial_read(), buspirate_serial_write(), CMD_RAW_CONFIG_3V3, CMD_RAW_CONFIG_LSB, CMD_RAW_MODE, LOG_ERROR, mode, and MODE_HIZ.
Referenced by buspirate_set_mode().
|
static |
Definition at line 895 of file buspirate.c.
References buspirate_serial_read(), buspirate_serial_write(), CMD_RAW_SPEED, LOG_DEBUG, LOG_ERROR, and SPEED_RAW_400_KHZ.
Referenced by buspirate_set_speed().
|
static |
Definition at line 1301 of file buspirate.c.
References buspirate_fd, buspirate_serial_read(), buspirate_serial_write(), DIV_ROUND_UP, ERROR_FAIL, ERROR_OK, JTAG_TO_SWD, LINE_RESET, LOG_DEBUG, LOG_ERROR, swd_seq_jtag_to_swd, swd_seq_jtag_to_swd_len, swd_seq_line_reset, swd_seq_line_reset_len, swd_seq_swd_to_jtag, swd_seq_swd_to_jtag_len, and SWD_TO_JTAG.
|
static |
Definition at line 1350 of file buspirate.c.
References buspirate_fd, buspirate_serial_read(), buspirate_serial_write(), cmd, and SWD_CMD_RNW.
Referenced by buspirate_swd_read_reg(), and buspirate_swd_write_reg().
|
static |
Definition at line 1471 of file buspirate.c.
References buf_set_u32(), buspirate_fd, buspirate_serial_read(), buspirate_serial_write(), buspirate_swd_clear_sticky_errors(), buspirate_swd_idle_clocks(), buspirate_swd_write_header(), cmd, ERROR_OK, LOG_DEBUG, parity_u32(), queued_retval, SWD_ACK_FAULT, SWD_ACK_OK, SWD_ACK_WAIT, SWD_CMD_A32, SWD_CMD_APNDP, SWD_CMD_PARK, SWD_CMD_RNW, and SWD_CMD_START.
Referenced by buspirate_swd_clear_sticky_errors().
|
static |
Definition at line 787 of file buspirate.c.
References bit(), BUSPIRATE_BUFFER_SIZE, buspirate_tap_make_space(), LOG_ERROR, tap_chain_index, tdi_chain, and tms_chain.
Referenced by buspirate_path_move(), buspirate_runtest(), buspirate_scan(), buspirate_stableclocks(), buspirate_state_move(), and buspirate_tap_append_scan().
|
static |
Definition at line 831 of file buspirate.c.
References pending_scan_result::buffer, buffer, buspirate_tap_append(), pending_scan_result::command, pending_scan_result::first, pending_scan_result::length, length, tap_chain_index, tap_pending_scans, and tap_pending_scans_num.
Referenced by buspirate_scan().
|
static |
Definition at line 706 of file buspirate.c.
References buf_set_buf(), pending_scan_result::buffer, buffer, buspirate_fd, buspirate_serial_read(), buspirate_serial_write(), buspirate_tap_init(), CMD_TAP_SHIFT, CMD_TAP_SHIFT_HEADER_LEN, pending_scan_result::command, DIV_ROUND_UP, ERROR_FAIL, ERROR_JTAG_DEVICE_ERROR, ERROR_JTAG_QUEUE_FAILED, ERROR_OK, pending_scan_result::first, jtag_debug_state_machine(), jtag_read_buffer(), last_tap_state, pending_scan_result::length, length, LOG_DEBUG, LOG_ERROR, tap_chain_index, tap_pending_scans, tap_pending_scans_num, tdi_chain, and tms_chain.
Referenced by buspirate_execute_queue(), and buspirate_tap_make_space().
|
static |
Definition at line 700 of file buspirate.c.
References tap_chain_index, and tap_pending_scans_num.
Referenced by buspirate_init(), and buspirate_tap_execute().
|
static |
Definition at line 778 of file buspirate.c.
References bits, BUSPIRATE_BUFFER_SIZE, BUSPIRATE_MAX_PENDING_SCANS, buspirate_tap_execute(), tap_chain_index, and tap_pending_scans_num.
Referenced by buspirate_scan(), buspirate_stableclocks(), and buspirate_tap_append().
COMMAND_HANDLER | ( | buspirate_handle_adc_command | ) |
Definition at line 352 of file buspirate.c.
References buspirate_fd, buspirate_jtag_get_adcs(), ERROR_OK, and swd_mode.
COMMAND_HANDLER | ( | buspirate_handle_led_command | ) |
Definition at line 400 of file buspirate.c.
References ACTION_DISABLE, ACTION_ENABLE, buspirate_fd, buspirate_set_feature(), CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, FEATURE_LED, and LOG_ERROR.
COMMAND_HANDLER | ( | buspirate_handle_mode_command | ) |
Definition at line 421 of file buspirate.c.
References buspirate_pinmode, CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_ERROR, MODE_JTAG, and MODE_JTAG_OD.
COMMAND_HANDLER | ( | buspirate_handle_port_command | ) |
Definition at line 453 of file buspirate.c.
COMMAND_HANDLER | ( | buspirate_handle_pullup_command | ) |
Definition at line 384 of file buspirate.c.
References buspirate_pullup, CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, and LOG_ERROR.
COMMAND_HANDLER | ( | buspirate_handle_speed_command | ) |
Definition at line 437 of file buspirate.c.
References buspirate_baudrate, CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_ERROR, SERIAL_FAST, and SERIAL_NORMAL.
COMMAND_HANDLER | ( | buspirate_handle_vreg_command | ) |
Definition at line 368 of file buspirate.c.
References buspirate_vreg, CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, and LOG_ERROR.
|
static |
Definition at line 230 of file buspirate.c.
References buffer, and LOG_INFO.
Referenced by buspirate_init().
struct adapter_driver buspirate_adapter_driver |
Definition at line 537 of file buspirate.c.
|
static |
Definition at line 106 of file buspirate.c.
Referenced by buspirate_init(), and COMMAND_HANDLER().
|
static |
Definition at line 453 of file buspirate.c.
|
static |
Definition at line 104 of file buspirate.c.
Referenced by buspirate_init(), buspirate_quit(), buspirate_reset(), buspirate_swd_idle_clocks(), buspirate_swd_read_reg(), buspirate_swd_switch_seq(), buspirate_swd_write_header(), buspirate_swd_write_reg(), buspirate_tap_execute(), and COMMAND_HANDLER().
|
static |
Definition at line 537 of file buspirate.c.
|
static |
Definition at line 105 of file buspirate.c.
Referenced by buspirate_init(), and COMMAND_HANDLER().
|
static |
Definition at line 109 of file buspirate.c.
Referenced by buspirate_init(), buspirate_quit(), and buspirate_serial_open().
|
static |
Definition at line 108 of file buspirate.c.
Referenced by buspirate_init(), and COMMAND_HANDLER().
|
static |
Definition at line 453 of file buspirate.c.
|
static |
Definition at line 453 of file buspirate.c.
|
static |
Definition at line 537 of file buspirate.c.
|
static |
Definition at line 107 of file buspirate.c.
Referenced by buspirate_init(), and COMMAND_HANDLER().
Definition at line 109 of file buspirate.c.
Referenced by buspirate_tap_execute().
|
static |
Definition at line 101 of file buspirate.c.
Referenced by buspirate_swd_read_reg(), buspirate_swd_run_queue(), and buspirate_swd_write_reg().
|
static |
Definition at line 102 of file buspirate.c.
Referenced by buspirate_swd_set_feature().
|
static |
Definition at line 100 of file buspirate.c.
Referenced by buspirate_bbio_enable(), buspirate_init(), buspirate_set_feature(), buspirate_set_mode(), buspirate_set_speed(), buspirate_swd_init(), and COMMAND_HANDLER().
|
static |
Definition at line 686 of file buspirate.c.
Referenced by buspirate_tap_append(), buspirate_tap_append_scan(), buspirate_tap_execute(), buspirate_tap_init(), and buspirate_tap_make_space().
|
static |
Definition at line 686 of file buspirate.c.
Referenced by buspirate_tap_append_scan(), and buspirate_tap_execute().
|
static |
Definition at line 698 of file buspirate.c.
Referenced by buspirate_tap_append_scan(), buspirate_tap_execute(), buspirate_tap_init(), and buspirate_tap_make_space().
|
static |
Definition at line 685 of file buspirate.c.
Referenced by buspirate_tap_append(), and buspirate_tap_execute().
|
static |
Definition at line 684 of file buspirate.c.
Referenced by buspirate_tap_append(), and buspirate_tap_execute().