- Fixes '[|]' whitespace
- Replace ')\([|]\)(' with ') \1 ('.
- Replace ')\([|]\)\(\w\)' with ') \1 \2'.
- Replace '\(\w\)\([|]\)(' with '\1 \2 ('.
- Replace '\(\w\)\([|]\)\(\w\)' with '\1 \2 \3'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2374 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -299,7 +299,7 @@ static int jlink_register_commands(struct command_context_s *cmd_ctx)
|
||||
"query jlink info");
|
||||
register_command(cmd_ctx, NULL, "jlink_hw_jtag",
|
||||
&jlink_handle_jlink_hw_jtag_command, COMMAND_EXEC,
|
||||
"set/get jlink hw jtag command version [2|3]");
|
||||
"set/get jlink hw jtag command version [2 | 3]");
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -469,7 +469,7 @@ static int parport_handle_write_on_exit_command(struct command_context_s *cmd_ct
|
||||
{
|
||||
if (argc != 1)
|
||||
{
|
||||
command_print(cmd_ctx, "usage: parport_write_on_exit <on|off>");
|
||||
command_print(cmd_ctx, "usage: parport_write_on_exit <on | off>");
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -699,11 +699,11 @@ int jtag_register_commands(struct command_context_s *cmd_ctx)
|
||||
register_jim(cmd_ctx, "pathmove", Jim_Command_pathmove, "move JTAG to state1 then to state2, state3, etc. <state1>,<state2>,<stat3>...");
|
||||
|
||||
register_command(cmd_ctx, NULL, "verify_ircapture", handle_verify_ircapture_command,
|
||||
COMMAND_ANY, "verify value captured during Capture-IR <enable|disable>");
|
||||
COMMAND_ANY, "verify value captured during Capture-IR <enable | disable>");
|
||||
register_command(cmd_ctx, NULL, "verify_jtag", handle_verify_jtag_command,
|
||||
COMMAND_ANY, "verify value capture <enable|disable>");
|
||||
COMMAND_ANY, "verify value capture <enable | disable>");
|
||||
register_command(cmd_ctx, NULL, "tms_sequence", handle_tms_sequence_command,
|
||||
COMMAND_ANY, "choose short(default) or long tms_sequence <short|long>");
|
||||
COMMAND_ANY, "choose short(default) or long tms_sequence <short | long>");
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ static void setCurrentState(enum tap_state state)
|
||||
}
|
||||
waitQueue();
|
||||
sampleShiftRegister();
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (repeat << 8)|(a << 4)|a);
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (repeat << 8) | (a << 4) | a);
|
||||
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ static __inline__ void shiftValueInner(const enum tap_state state, const enum ta
|
||||
}
|
||||
/* shift out value */
|
||||
waitIdle();
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x28, (((value >> i)&1) << 1)|tms);
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x28, (((value >> i)&1) << 1) | tms);
|
||||
}
|
||||
waitIdle();
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x28, 0);
|
||||
@@ -116,11 +116,11 @@ static __inline__ void shiftValueInner(const enum tap_state state, const enum ta
|
||||
setCurrentState(endState);
|
||||
} else
|
||||
{
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (repeat << 8)|(a << 4)|b);
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (repeat << 8) | (a << 4) | b);
|
||||
}
|
||||
#else
|
||||
/* fast version */
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (repeat << 8)|(a << 4)|b);
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (repeat << 8) | (a << 4) | b);
|
||||
#endif
|
||||
#else
|
||||
/* maximum debug version */
|
||||
@@ -132,15 +132,15 @@ static __inline__ void shiftValueInner(const enum tap_state state, const enum ta
|
||||
{
|
||||
sampleShiftRegister();
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0xc, value >> i);
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (1 << 8)|(a << 4)|a);
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (1 << 8) | (a << 4) | a);
|
||||
}
|
||||
sampleShiftRegister();
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0xc, value >> (repeat-1));
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (1 << 8)|(a << 4)|b);
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (1 << 8) | (a << 4) | b);
|
||||
} else
|
||||
{
|
||||
sampleShiftRegister();
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (repeat << 8)|(a << 4)|b);
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (repeat << 8) | (a << 4) | b);
|
||||
}
|
||||
sampleShiftRegister();
|
||||
#endif
|
||||
|
||||
@@ -405,7 +405,7 @@ static void shiftValueInnerFlip(const tap_state_t state, const tap_state_t endSt
|
||||
a = state;
|
||||
b = endState;
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0xc, value);
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (1 << 15)|(repeat << 8)|(a << 4)|b);
|
||||
ZY1000_POKE(ZY1000_JTAG_BASE + 0x8, (1 << 15) | (repeat << 8) | (a << 4) | b);
|
||||
VERBOSE(getShiftValueFlip());
|
||||
}
|
||||
#endif
|
||||
@@ -741,7 +741,7 @@ void embeddedice_write_dcc(jtag_tap_t *tap, int reg_addr, uint8_t *buffer, int l
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
shiftValueInner(TAP_DRSHIFT, TAP_DRSHIFT, 32, fast_target_buffer_get_u32(buffer, 1));
|
||||
shiftValueInner(TAP_DRSHIFT, end_state, 6, reg_addr|(1 << 5));
|
||||
shiftValueInner(TAP_DRSHIFT, end_state, 6, reg_addr | (1 << 5));
|
||||
buffer += 4;
|
||||
}
|
||||
} else
|
||||
@@ -750,7 +750,7 @@ void embeddedice_write_dcc(jtag_tap_t *tap, int reg_addr, uint8_t *buffer, int l
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
shiftValueInner(TAP_DRSHIFT, TAP_DRSHIFT, 32, fast_target_buffer_get_u32(buffer, 0));
|
||||
shiftValueInner(TAP_DRSHIFT, end_state, 6, reg_addr|(1 << 5));
|
||||
shiftValueInner(TAP_DRSHIFT, end_state, 6, reg_addr | (1 << 5));
|
||||
buffer += 4;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user