OpenOCD
|
Go to the source code of this file.
Functions | |
int | avr32_jtag_exec (struct avr32_jtag *jtag_info, uint32_t inst) |
int | avr32_jtag_mwa_read (struct avr32_jtag *jtag_info, int slave, uint32_t addr, uint32_t *value) |
static int | avr32_jtag_mwa_read_data (struct avr32_jtag *jtag_info, uint32_t *pdata) |
static int | avr32_jtag_mwa_set_address (struct avr32_jtag *jtag_info, int slave, uint32_t addr, int mode) |
int | avr32_jtag_mwa_write (struct avr32_jtag *jtag_info, int slave, uint32_t addr, uint32_t value) |
static int | avr32_jtag_mwa_write_data (struct avr32_jtag *jtag_info, uint32_t data) |
int | avr32_jtag_nexus_read (struct avr32_jtag *jtag_info, uint32_t addr, uint32_t *value) |
static int | avr32_jtag_nexus_read_data (struct avr32_jtag *jtag_info, uint32_t *pdata) |
static int | avr32_jtag_nexus_set_address (struct avr32_jtag *jtag_info, uint32_t addr, int mode) |
int | avr32_jtag_nexus_write (struct avr32_jtag *jtag_info, uint32_t addr, uint32_t value) |
static int | avr32_jtag_nexus_write_data (struct avr32_jtag *jtag_info, uint32_t data) |
static int | avr32_jtag_set_instr (struct avr32_jtag *jtag_info, int new_instr) |
int | avr32_ocd_clearbits (struct avr32_jtag *jtag, int reg, uint32_t bits) |
int | avr32_ocd_setbits (struct avr32_jtag *jtag, int reg, uint32_t bits) |
int avr32_jtag_exec | ( | struct avr32_jtag * | jtag_info, |
uint32_t | inst | ||
) |
Definition at line 310 of file avr32_jtag.c.
References avr32_jtag_nexus_read(), avr32_jtag_nexus_write(), AVR32_OCDREG_DINST, AVR32_OCDREG_DS, ERROR_OK, OCDREG_DS_DBA, and OCDREG_DS_INC.
Referenced by avr32_ap7k_resume(), avr32_jtag_read_reg(), avr32_jtag_read_regs(), avr32_jtag_write_reg(), and avr32_jtag_write_regs().
int avr32_jtag_mwa_read | ( | struct avr32_jtag * | jtag_info, |
int | slave, | ||
uint32_t | addr, | ||
uint32_t * | value | ||
) |
Definition at line 290 of file avr32_jtag.c.
References addr, AVR32_INST_MW_ACCESS, avr32_jtag_mwa_read_data(), avr32_jtag_mwa_set_address(), avr32_jtag_set_instr(), ERROR_OK, and MODE_READ.
Referenced by avr32_jtag_read_memory16(), avr32_jtag_read_memory32(), avr32_jtag_read_memory8(), avr32_jtag_write_memory16(), and avr32_jtag_write_memory8().
|
static |
Definition at line 215 of file avr32_jtag.c.
References buf_get_u32(), ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_add_dr_scan(), jtag_execute_queue(), LOG_ERROR, NULL, scan_field::num_bits, scan_field::out_value, avr32_jtag::tap, and TAP_IDLE.
Referenced by avr32_jtag_mwa_read().
|
static |
Definition at line 176 of file avr32_jtag.c.
References addr, buf_get_u32(), buf_set_u32(), ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_add_dr_scan(), jtag_execute_queue(), LOG_ERROR, mode, NULL, scan_field::num_bits, scan_field::out_value, avr32_jtag::tap, and TAP_IDLE.
Referenced by avr32_jtag_mwa_read(), and avr32_jtag_mwa_write().
int avr32_jtag_mwa_write | ( | struct avr32_jtag * | jtag_info, |
int | slave, | ||
uint32_t | addr, | ||
uint32_t | value | ||
) |
Definition at line 300 of file avr32_jtag.c.
References addr, AVR32_INST_MW_ACCESS, avr32_jtag_mwa_set_address(), avr32_jtag_mwa_write_data(), avr32_jtag_set_instr(), ERROR_OK, and MODE_WRITE.
Referenced by avr32_jtag_write_memory16(), avr32_jtag_write_memory32(), and avr32_jtag_write_memory8().
|
static |
Definition at line 252 of file avr32_jtag.c.
References buf_get_u32(), buf_set_u32(), ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_add_dr_scan(), jtag_execute_queue(), LOG_ERROR, NULL, scan_field::num_bits, scan_field::out_value, avr32_jtag::tap, and TAP_IDLE.
Referenced by avr32_jtag_mwa_write().
int avr32_jtag_nexus_read | ( | struct avr32_jtag * | jtag_info, |
uint32_t | addr, | ||
uint32_t * | value | ||
) |
Definition at line 160 of file avr32_jtag.c.
References addr, AVR32_INST_NEXUS_ACCESS, avr32_jtag_nexus_read_data(), avr32_jtag_nexus_set_address(), avr32_jtag_set_instr(), and MODE_READ.
Referenced by avr32_ap7k_debug_entry(), avr32_ap7k_examine(), avr32_ap7k_poll(), avr32_jtag_exec(), avr32_jtag_read_reg(), avr32_jtag_write_reg(), avr32_ocd_clearbits(), and avr32_ocd_setbits().
|
static |
Definition at line 84 of file avr32_jtag.c.
References buf_get_u32(), ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_add_dr_scan(), jtag_execute_queue(), LOG_ERROR, NULL, scan_field::num_bits, scan_field::out_value, avr32_jtag::tap, and TAP_IDLE.
Referenced by avr32_jtag_nexus_read().
|
static |
Definition at line 47 of file avr32_jtag.c.
References addr, buf_get_u32(), buf_set_u32(), ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_add_dr_scan(), jtag_execute_queue(), LOG_ERROR, mode, NULL, scan_field::num_bits, scan_field::out_value, avr32_jtag::tap, and TAP_IDLE.
Referenced by avr32_jtag_nexus_read(), and avr32_jtag_nexus_write().
int avr32_jtag_nexus_write | ( | struct avr32_jtag * | jtag_info, |
uint32_t | addr, | ||
uint32_t | value | ||
) |
Definition at line 168 of file avr32_jtag.c.
References addr, AVR32_INST_NEXUS_ACCESS, avr32_jtag_nexus_set_address(), avr32_jtag_nexus_write_data(), avr32_jtag_set_instr(), and MODE_WRITE.
Referenced by avr32_jtag_exec(), avr32_jtag_write_reg(), avr32_ocd_clearbits(), and avr32_ocd_setbits().
|
static |
Definition at line 121 of file avr32_jtag.c.
References buf_get_u32(), buf_set_u32(), ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_add_dr_scan(), jtag_execute_queue(), LOG_ERROR, NULL, scan_field::num_bits, scan_field::out_value, avr32_jtag::tap, and TAP_IDLE.
Referenced by avr32_jtag_nexus_write().
|
static |
Definition at line 15 of file avr32_jtag.c.
References buf_get_u32(), buf_set_u32(), jtag_tap::cur_instr, ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_tap::ir_length, jtag_add_ir_scan(), jtag_execute_queue(), LOG_ERROR, scan_field::num_bits, scan_field::out_value, avr32_jtag::tap, and TAP_IDLE.
Referenced by avr32_jtag_mwa_read(), avr32_jtag_mwa_write(), avr32_jtag_nexus_read(), and avr32_jtag_nexus_write().
int avr32_ocd_clearbits | ( | struct avr32_jtag * | jtag, |
int | reg, | ||
uint32_t | bits | ||
) |
Definition at line 345 of file avr32_jtag.c.
References avr32_jtag_nexus_read(), avr32_jtag_nexus_write(), bits, and ERROR_OK.
Referenced by avr32_ap7k_resume().
int avr32_ocd_setbits | ( | struct avr32_jtag * | jtag, |
int | reg, | ||
uint32_t | bits | ||
) |
Definition at line 328 of file avr32_jtag.c.
References avr32_jtag_nexus_read(), avr32_jtag_nexus_write(), bits, and ERROR_OK.
Referenced by avr32_ap7k_examine(), and avr32_ap7k_halt().