target/avrt: Remove unused parameter 'rti'
Change-Id: Ib6957b89190188f5c15fadc3d4036709f19a6cea Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8412 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
0847a4d7fb
commit
9ef59daef0
|
@ -31,10 +31,10 @@ static int avr_assert_reset(struct target *target);
|
|||
static int avr_deassert_reset(struct target *target);
|
||||
|
||||
/* IR and DR functions */
|
||||
static int mcu_write_ir(struct jtag_tap *tap, uint8_t *ir_in, uint8_t *ir_out, int ir_len, int rti);
|
||||
static int mcu_write_dr(struct jtag_tap *tap, uint8_t *dr_in, uint8_t *dr_out, int dr_len, int rti);
|
||||
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 mcu_write_dr_u32(struct jtag_tap *tap, uint32_t *ir_in, uint32_t ir_out, int dr_len, int rti);
|
||||
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(struct jtag_tap *tap, uint8_t *dr_in, uint8_t *dr_out, int dr_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_dr_u32(struct jtag_tap *tap, uint32_t *ir_in, uint32_t ir_out, int dr_len);
|
||||
|
||||
struct target_type avr_target = {
|
||||
.name = "avr",
|
||||
|
@ -137,17 +137,17 @@ static int avr_deassert_reset(struct target *target)
|
|||
int avr_jtag_senddat(struct jtag_tap *tap, uint32_t *dr_in, uint32_t dr_out,
|
||||
int len)
|
||||
{
|
||||
return mcu_write_dr_u32(tap, dr_in, dr_out, len, 1);
|
||||
return mcu_write_dr_u32(tap, dr_in, dr_out, len);
|
||||
}
|
||||
|
||||
int avr_jtag_sendinstr(struct jtag_tap *tap, uint8_t *ir_in, uint8_t ir_out)
|
||||
{
|
||||
return mcu_write_ir_u8(tap, ir_in, ir_out, AVR_JTAG_INS_LEN, 1);
|
||||
return mcu_write_ir_u8(tap, ir_in, ir_out, AVR_JTAG_INS_LEN);
|
||||
}
|
||||
|
||||
/* IR and DR functions */
|
||||
static int mcu_write_ir(struct jtag_tap *tap, uint8_t *ir_in, uint8_t *ir_out,
|
||||
int ir_len, int rti)
|
||||
int ir_len)
|
||||
{
|
||||
if (!tap) {
|
||||
LOG_ERROR("invalid tap");
|
||||
|
@ -166,7 +166,7 @@ static int mcu_write_ir(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)
|
||||
int dr_len)
|
||||
{
|
||||
if (!tap) {
|
||||
LOG_ERROR("invalid tap");
|
||||
|
@ -181,27 +181,27 @@ static int mcu_write_dr(struct jtag_tap *tap, uint8_t *dr_in, uint8_t *dr_out,
|
|||
}
|
||||
|
||||
static int mcu_write_ir_u8(struct jtag_tap *tap, uint8_t *ir_in,
|
||||
uint8_t ir_out, int ir_len, int rti)
|
||||
uint8_t ir_out, int ir_len)
|
||||
{
|
||||
if (ir_len > 8) {
|
||||
LOG_ERROR("ir_len overflow, maximum is 8");
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
mcu_write_ir(tap, ir_in, &ir_out, ir_len, rti);
|
||||
mcu_write_ir(tap, ir_in, &ir_out, ir_len);
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int mcu_write_dr_u32(struct jtag_tap *tap, uint32_t *dr_in,
|
||||
uint32_t dr_out, int dr_len, int rti)
|
||||
uint32_t dr_out, int dr_len)
|
||||
{
|
||||
if (dr_len > 32) {
|
||||
LOG_ERROR("dr_len overflow, maximum is 32");
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
mcu_write_dr(tap, (uint8_t *)dr_in, (uint8_t *)&dr_out, dr_len, rti);
|
||||
mcu_write_dr(tap, (uint8_t *)dr_in, (uint8_t *)&dr_out, dr_len);
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue