summaryrefslogtreecommitdiff
path: root/src/jtag/jlink.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 06:15:31 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:05 -0800
commit246068fd8985b293d7109058f83c57f6c22a4336 (patch)
treea22f23a1b1566f25c6dadc4dcfdaaae27ad4b55b /src/jtag/jlink.c
parent1053c32d9ecc95ce946bbbf49cccfe800881f9aa (diff)
downloadopenocd+libswd-246068fd8985b293d7109058f83c57f6c22a4336.tar.gz
openocd+libswd-246068fd8985b293d7109058f83c57f6c22a4336.tar.bz2
openocd+libswd-246068fd8985b293d7109058f83c57f6c22a4336.tar.xz
openocd+libswd-246068fd8985b293d7109058f83c57f6c22a4336.zip
jtag_command_t -> struct jtag_command
Remove useless typedef from struct jtag_command.
Diffstat (limited to 'src/jtag/jlink.c')
-rw-r--r--src/jtag/jlink.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c
index 140949a4..9677f0e8 100644
--- a/src/jtag/jlink.c
+++ b/src/jtag/jlink.c
@@ -150,7 +150,7 @@ struct jtag_interface jlink_interface =
.quit = jlink_quit
};
-static void jlink_execute_runtest(jtag_command_t *cmd)
+static void jlink_execute_runtest(struct jtag_command *cmd)
{
DEBUG_JTAG_IO("runtest %i cycles, end in %i",
cmd->cmd.runtest->num_cycles,
@@ -161,7 +161,7 @@ static void jlink_execute_runtest(jtag_command_t *cmd)
jlink_runtest(cmd->cmd.runtest->num_cycles);
}
-static void jlink_execute_statemove(jtag_command_t *cmd)
+static void jlink_execute_statemove(struct jtag_command *cmd)
{
DEBUG_JTAG_IO("statemove end in %i", cmd->cmd.statemove->end_state);
@@ -169,7 +169,7 @@ static void jlink_execute_statemove(jtag_command_t *cmd)
jlink_state_move();
}
-static void jlink_execute_pathmove(jtag_command_t *cmd)
+static void jlink_execute_pathmove(struct jtag_command *cmd)
{
DEBUG_JTAG_IO("pathmove: %i states, end in %i",
cmd->cmd.pathmove->num_states,
@@ -179,7 +179,7 @@ static void jlink_execute_pathmove(jtag_command_t *cmd)
cmd->cmd.pathmove->path);
}
-static void jlink_execute_scan(jtag_command_t *cmd)
+static void jlink_execute_scan(struct jtag_command *cmd)
{
int scan_size;
enum scan_type type;
@@ -200,7 +200,7 @@ static void jlink_execute_scan(jtag_command_t *cmd)
type, buffer, scan_size, cmd->cmd.scan);
}
-static void jlink_execute_reset(jtag_command_t *cmd)
+static void jlink_execute_reset(struct jtag_command *cmd)
{
DEBUG_JTAG_IO("reset trst: %i srst %i",
cmd->cmd.reset->trst, cmd->cmd.reset->srst);
@@ -210,14 +210,14 @@ static void jlink_execute_reset(jtag_command_t *cmd)
jlink_tap_execute();
}
-static void jlink_execute_sleep(jtag_command_t *cmd)
+static void jlink_execute_sleep(struct jtag_command *cmd)
{
DEBUG_JTAG_IO("sleep %i", cmd->cmd.sleep->us);
jlink_tap_execute();
jtag_sleep(cmd->cmd.sleep->us);
}
-static void jlink_execute_command(jtag_command_t *cmd)
+static void jlink_execute_command(struct jtag_command *cmd)
{
switch (cmd->type)
{
@@ -235,7 +235,7 @@ static void jlink_execute_command(jtag_command_t *cmd)
static int jlink_execute_queue(void)
{
- jtag_command_t *cmd = jtag_command_queue;
+ struct jtag_command *cmd = jtag_command_queue;
while (cmd != NULL)
{