.execute_queue = ft2232_execute_queue,
- .support_pathmove = 1,
-
.speed = ft2232_speed,
.register_commands = ft2232_register_commands,
.init = ft2232_init,
tms_byte = 0x0;
int bit_count = 0;
+ int num_states_batch = num_states > 7 ? 7 : num_states;
+
/* command "Clock Data to TMS/CS Pin (no Read)" */
BUFFER_ADD = 0x4b;
/* number of states remaining */
- BUFFER_ADD = (num_states % 7) - 1;
+ BUFFER_ADD = num_states_batch - 1;
- while (num_states % 7)
+ while (num_states_batch--)
{
if (tap_transitions[cur_state].low == cmd->path[state_count])
buf_set_u32(&tms_byte, bit_count++, 1, 0x0);
}
else
{
- printf("ListDevices: NONE\n");
+ ERROR("ListDevices: NONE\n");
}
return ERROR_JTAG_INIT_FAILED;
}
#endif
free(ft2232_buffer);
+ ft2232_buffer = NULL;
return ERROR_OK;
}
return ERROR_OK;
}
+