OpenOCD
|
Holds driver for PRESTO programmer from ASIX. More...
Go to the source code of this file.
Data Structures | |
struct | presto |
Macros | |
#define | BUFFER_SIZE (64*62) |
#define | FT_DEVICE_NAME_LEN 64 |
#define | FT_DEVICE_SERNUM_LEN 64 |
#define | PRESTO_PID (0xf1a0) |
#define | PRESTO_VID (0x0403) |
#define | PRESTO_VID_PID 0x0403f1a0 |
Functions | |
static int | presto_adapter_khz (int khz, int *jtag_speed) |
static int | presto_bitq_flush (void) |
static int | presto_bitq_in (void) |
static int | presto_bitq_in_rdy (void) |
static int | presto_bitq_out (int tms, int tdi, int tdo_req) |
static int | presto_bitq_reset (int trst, int srst) |
static int | presto_bitq_sleep (unsigned long us) |
static int | presto_close (void) |
static int | presto_flush (void) |
static int | presto_jtag_init (void) |
static int | presto_jtag_quit (void) |
static int | presto_jtag_speed (int speed) |
static int | presto_jtag_speed_div (int speed, int *khz) |
static int | presto_open (const char *req_serial) |
static int | presto_open_libftdi (const char *req_serial) |
static int | presto_read (uint8_t *buf, uint32_t size) |
static int | presto_sendbyte (int data) |
static int | presto_tck_idle (void) |
static int | presto_tdi_flush (void) |
static int | presto_write (uint8_t *buf, uint32_t size) |
Variables | |
static struct presto * | presto = &presto_state |
struct adapter_driver | presto_adapter_driver |
static struct bitq_interface | presto_bitq |
static uint8_t | presto_init_seq [] |
static struct jtag_interface | presto_interface |
static struct presto | presto_state |
Holds driver for PRESTO programmer from ASIX.
http://tools.asix.net/prg_presto.htm
Definition in file presto.c.
|
static |
Definition at line 452 of file presto.c.
References ERROR_COMMAND_SYNTAX_ERROR.
|
static |
Definition at line 380 of file presto.c.
References presto_flush(), presto_sendbyte(), presto_tck_idle(), and presto_tdi_flush().
Referenced by presto_bitq_sleep().
|
static |
Definition at line 397 of file presto.c.
References presto::buff_in, presto::buff_in_len, and presto::buff_in_pos.
|
static |
Definition at line 390 of file presto.c.
References presto::buff_in_len, and presto::buff_in_pos.
|
static |
Definition at line 338 of file presto.c.
References cmd, presto::jtag_rst, presto::jtag_speed, presto::jtag_tck, presto::jtag_tdi_count, presto::jtag_tdi_data, presto::jtag_tms, presto_sendbyte(), and presto_tdi_flush().
|
static |
Definition at line 406 of file presto.c.
References jtag_sleep(), presto_bitq_flush(), presto_sendbyte(), presto_tck_idle(), and presto_tdi_flush().
|
static |
Definition at line 209 of file presto.c.
References ERROR_JTAG_DEVICE_ERROR, ERROR_OK, presto::ftdic, presto_init_seq, and presto::retval.
Referenced by presto_jtag_init().
|
static |
Definition at line 231 of file presto.c.
References presto::buff_in, presto::buff_in_exp, presto::buff_in_len, presto::buff_in_pos, presto::buff_out, presto::buff_out_pos, ERROR_JTAG_DEVICE_ERROR, ERROR_OK, LOG_DEBUG, presto_read(), presto_write(), presto::retval, presto::total_in, and presto::total_out.
Referenced by presto_bitq_flush(), and presto_sendbyte().
|
static |
Definition at line 499 of file presto.c.
References adapter_get_required_serial(), ERROR_JTAG_INIT_FAILED, ERROR_OK, LOG_ERROR, LOG_INFO, presto_bitq, presto_close(), presto_open(), and presto::serial.
|
static |
Definition at line 482 of file presto.c.
References ERROR_COMMAND_SYNTAX_ERROR, presto::jtag_speed, LOG_INFO, and presto_jtag_speed_div().
|
static |
Definition at line 467 of file presto.c.
References ERROR_COMMAND_SYNTAX_ERROR.
Referenced by presto_jtag_speed().
|
static |
Definition at line 188 of file presto.c.
References presto::buff_in_exp, presto::buff_in_len, presto::buff_in_pos, presto::buff_out_pos, presto::jtag_rst, presto::jtag_speed, presto::jtag_tck, presto::jtag_tdi_count, presto::jtag_tdi_data, presto::jtag_tms, presto_open_libftdi(), presto::total_in, and presto::total_out.
Referenced by presto_jtag_init().
|
static |
Definition at line 125 of file presto.c.
References ERROR_JTAG_DEVICE_ERROR, ERROR_OK, ftdi_tcioflush(), presto::ftdic, LOG_DEBUG, LOG_ERROR, NULL, presto_init_seq, PRESTO_PID, presto_read(), PRESTO_VID, and presto_write().
Referenced by presto_open().
|
static |
Definition at line 93 of file presto.c.
References ERROR_JTAG_DEVICE_ERROR, ERROR_OK, presto::ftdic, gettimeofday(), LOG_ERROR, LOG_WARNING, NULL, presto::retval, size, timeval_add_time(), and timeval_compare().
Referenced by presto_flush(), and presto_open_libftdi().
|
static |
Definition at line 267 of file presto.c.
References presto::buff_in_exp, presto::buff_out, presto::buff_out_pos, BUFFER_SIZE, ERROR_JTAG_DEVICE_ERROR, ERROR_OK, and presto_flush().
Referenced by presto_bitq_flush(), presto_bitq_out(), presto_bitq_sleep(), presto_tck_idle(), and presto_tdi_flush().
|
static |
Definition at line 326 of file presto.c.
References presto::jtag_tck, and presto_sendbyte().
Referenced by presto_bitq_flush(), and presto_bitq_sleep().
|
static |
Definition at line 308 of file presto.c.
References presto::jtag_tck, presto::jtag_tdi_count, presto::jtag_tdi_data, LOG_ERROR, and presto_sendbyte().
Referenced by presto_bitq_flush(), presto_bitq_out(), and presto_bitq_sleep().
|
static |
Definition at line 74 of file presto.c.
References ERROR_JTAG_DEVICE_ERROR, ERROR_OK, presto::ftdic, LOG_ERROR, presto::retval, and size.
Referenced by presto_flush(), and presto_open_libftdi().
|
static |
struct adapter_driver presto_adapter_driver |
|
static |
Definition at line 426 of file presto.c.
Referenced by presto_jtag_init().
|
static |
Definition at line 70 of file presto.c.
Referenced by presto_close(), and presto_open_libftdi().
|
static |