libs, mini-jtag: fix two typos

Signed-off-by: minux <minux.ma@gmail.com>
This commit is contained in:
minux 2012-12-22 17:32:52 +08:00 committed by Xiangfu
parent 2b82acf3bb
commit ea5ad1478a
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ int fpga_swset_is_used(struct fpga_model* model, int y, int x,
// When calling, same_len must contain the size of the
// same_sw array. Upon return same_len returns how many
// switches were found and writen to same_sw.
// switches were found and written to same_sw.
int fpga_switch_same_fromto(struct fpga_model* model, int y, int x,
swidx_t sw, int from_to, swidx_t* same_sw, int *same_len);
// fpga_switch_lookup() returns NO_SWITCH if switch not found.

View File

@ -18,7 +18,7 @@ int tap_tms(struct ftdi_context *ftdi, int tms, uint8_t bit7)
{
uint8_t buf[3];
buf[0] = MPSSE_WRITE_TMS|MPSSE_LSB|MPSSE_BITMODE|MPSSE_WRITE_NEG;
buf[1] = 0; /* value = lenght - 1 */
buf[1] = 0; /* value = length - 1 */
buf[2] = (tms ? 0x01 : 0x00) | ((bit7 & 0x01) << 7);
if (ftdi_write_data(ftdi, buf, 3) != 3)
return -1;