16 #define AVR_JTAG_INS_LEN 4
26 int handle_breakpoints,
int debug_execution);
28 int handle_breakpoints);
34 static int mcu_write_ir(
struct jtag_tap *tap, uint8_t *ir_in, uint8_t *ir_out,
int ir_len,
int rti);
35 static int mcu_write_dr(
struct jtag_tap *tap, uint8_t *dr_in, uint8_t *dr_out,
int dr_len,
int rti);
109 int handle_breakpoints,
int debug_execution)
184 uint8_t ir_out,
int ir_len,
int rti)
187 LOG_ERROR(
"ir_len overflow, maximum is 8");
197 uint32_t dr_out,
int dr_len,
int rti)
200 LOG_ERROR(
"dr_len overflow, maximum is 32");
204 mcu_write_dr(tap, (uint8_t *)dr_in, (uint8_t *)&dr_out, dr_len, rti);
static int avr_arch_state(struct target *target)
static int mcu_write_dr_u32(struct jtag_tap *tap, uint32_t *ir_in, uint32_t ir_out, int dr_len, int rti)
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(struct jtag_tap *tap, uint8_t *ir_in, uint8_t *ir_out, int ir_len, int rti)
int avr_jtag_sendinstr(struct jtag_tap *tap, uint8_t *ir_in, uint8_t ir_out)
static int mcu_write_dr(struct jtag_tap *tap, uint8_t *dr_in, uint8_t *dr_out, int dr_len, int rti)
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_ir_u8(struct jtag_tap *tap, uint8_t *ir_in, uint8_t ir_out, int ir_len, int rti)
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
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.