16 #define AVR_JTAG_INS_LEN 4
26 int handle_breakpoints,
int debug_execution);
28 int handle_breakpoints);
109 int handle_breakpoints,
int debug_execution)
156 if ((
unsigned int)ir_len != tap->
ir_length) {
184 uint8_t ir_out,
int ir_len)
187 LOG_ERROR(
"ir_len overflow, maximum is 8");
197 uint32_t dr_out,
int dr_len)
200 LOG_ERROR(
"dr_len overflow, maximum is 32");
204 mcu_write_dr(tap, (uint8_t *)dr_in, (uint8_t *)&dr_out, dr_len);
static int avr_arch_state(struct target *target)
static int avr_step(struct target *target, int current, target_addr_t address, int handle_breakpoints)
static int avr_poll(struct target *target)
static int avr_init_target(struct command_context *cmd_ctx, struct target *target)
int avr_jtag_senddat(struct jtag_tap *tap, uint32_t *dr_in, uint32_t dr_out, int len)
static int mcu_write_ir_u8(struct jtag_tap *tap, uint8_t *ir_in, uint8_t ir_out, int ir_len)
static int mcu_write_ir(struct jtag_tap *tap, uint8_t *ir_in, uint8_t *ir_out, int ir_len)
static int mcu_write_dr_u32(struct jtag_tap *tap, uint32_t *ir_in, uint32_t ir_out, int dr_len)
int avr_jtag_sendinstr(struct jtag_tap *tap, uint8_t *ir_in, uint8_t ir_out)
static int avr_halt(struct target *target)
static int avr_assert_reset(struct target *target)
static int avr_target_create(struct target *target, Jim_Interp *interp)
struct target_type avr_target
int mcu_execute_queue(void)
static int avr_resume(struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution)
static int mcu_write_dr(struct jtag_tap *tap, uint8_t *dr_in, uint8_t *dr_out, int dr_len)
static int avr_deassert_reset(struct target *target)
void jtag_add_plain_dr_scan(int num_bits, const uint8_t *out_bits, uint8_t *in_bits, tap_state_t state)
Scan out the bits in ir scan mode.
void jtag_add_plain_ir_scan(int num_bits, const uint8_t *out_bits, uint8_t *in_bits, tap_state_t state)
Scan out the bits in ir scan mode.
int jtag_execute_queue(void)
For software FIFO implementations, the queued commands can be executed during this call or earlier.
#define LOG_ERROR(expr ...)
#define LOG_DEBUG(expr ...)
struct mcu_jtag jtag_info
unsigned int ir_length
size of instruction register
This holds methods shared between all instances of a given target type.
const char * name
Name of this type of target.