}
else
{
- /* Danger!!! if clk!=0 when in
+ /* Danger!!! if clk != 0 when in
* idle in TAP_IDLE, reset halt on str912 will fail.
*/
ZY1000_POKE(ZY1000_JTAG_BASE+0x10, 0x00000001);
cyg_uint32 status;
ZY1000_PEEK(ZY1000_JTAG_BASE+0x10, status);
- Jim_SetResult(interp, Jim_NewIntObj(interp, (status&0x80)!=0));
+ Jim_SetResult(interp, Jim_NewIntObj(interp, (status&0x80) != 0));
return JIM_OK;
}
/* clear JTAG error register */
ZY1000_POKE(ZY1000_JTAG_BASE+0x14, 0x400);
- if ((empty&0x400)!=0)
+ if ((empty&0x400) != 0)
{
LOG_WARNING("RCLK timeout");
/* the error is informative only as we don't want to break the firmware if there
// figure out where to store the input data
int num_bits=fields[i].num_bits;
- if (fields[i].in_value!=NULL)
+ if (fields[i].in_value != NULL)
{
inBuffer=fields[i].in_value;
}
// we have (num_bits+7)/8 bytes of bits to toggle out.
// bits are pushed out LSB to MSB
value=0;
- if (fields[i].out_value!=NULL)
+ if (fields[i].out_value != NULL)
{
- for (l=0; l<k; l+=8)
+ for (l=0; l<k; l += 8)
{
value|=fields[i].out_value[(j+l)/8]<<l;
}
shiftValueInner(shiftState, pause_state, k, value);
- if (inBuffer!=NULL)
+ if (inBuffer != NULL)
{
// data in, LSB to MSB
value=getShiftValue();
// we're shifting in data to MSB, shift data to be aligned for returning the value
value >>= 32-k;
- for (l=0; l<k; l+=8)
+ for (l=0; l<k; l += 8)
{
inBuffer[(j+l)/8]=(value>>l)&0xff;
}
}
- j+=k;
+ j += k;
}
}
}
/* execute num_cycles, 32 at the time. */
int i;
- for (i=0; i<num_cycles; i+=32)
+ for (i=0; i<num_cycles; i += 32)
{
int num;
num=32;
{
shiftValueInner(TAP_DRSHIFT, TAP_DRSHIFT, 32, fast_target_buffer_get_u32(buffer, 1));
shiftValueInner(TAP_DRSHIFT, end_state, 6, reg_addr|(1<<5));
- buffer+=4;
+ buffer += 4;
}
} else
{
{
shiftValueInner(TAP_DRSHIFT, TAP_DRSHIFT, 32, fast_target_buffer_get_u32(buffer, 0));
shiftValueInner(TAP_DRSHIFT, end_state, 6, reg_addr|(1<<5));
- buffer+=4;
+ buffer += 4;
}
}
}