summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 05:54:16 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:05 -0800
commitc07f0600ff3c77a00efaf4bdcd4dc3691f0421f6 (patch)
treee91376930bc5a327f1f794fd0ffa6aa490a2eaca /src
parentaf3f4a0bbefd796bd40602ae28f66dd373272e6a (diff)
downloadopenocd_libswd-c07f0600ff3c77a00efaf4bdcd4dc3691f0421f6.tar.gz
openocd_libswd-c07f0600ff3c77a00efaf4bdcd4dc3691f0421f6.tar.bz2
openocd_libswd-c07f0600ff3c77a00efaf4bdcd4dc3691f0421f6.tar.xz
openocd_libswd-c07f0600ff3c77a00efaf4bdcd4dc3691f0421f6.zip
pathmove_command_t -> struct pathmove_command
Remove misleading typedef from struct pathmove_command.
Diffstat (limited to 'src')
-rw-r--r--src/jtag/bitbang.c2
-rw-r--r--src/jtag/bitq.c2
-rw-r--r--src/jtag/commands.h7
-rw-r--r--src/jtag/driver.c2
-rw-r--r--src/jtag/gw16012.c2
-rw-r--r--src/jtag/rlink/rlink.c2
-rw-r--r--src/jtag/usbprog.c4
7 files changed, 10 insertions, 11 deletions
diff --git a/src/jtag/bitbang.c b/src/jtag/bitbang.c
index d62a5cd3..7c02628f 100644
--- a/src/jtag/bitbang.c
+++ b/src/jtag/bitbang.c
@@ -91,7 +91,7 @@ static void bitbang_state_move(int skip)
tap_set_state(tap_get_end_state());
}
-static void bitbang_path_move(pathmove_command_t *cmd)
+static void bitbang_path_move(struct pathmove_command *cmd)
{
int num_states = cmd->num_states;
int state_count;
diff --git a/src/jtag/bitq.c b/src/jtag/bitq.c
index ee7a073a..1c00228a 100644
--- a/src/jtag/bitq.c
+++ b/src/jtag/bitq.c
@@ -178,7 +178,7 @@ void bitq_state_move(tap_state_t new_state)
}
-void bitq_path_move(pathmove_command_t* cmd)
+void bitq_path_move(struct pathmove_command* cmd)
{
int i;
diff --git a/src/jtag/commands.h b/src/jtag/commands.h
index 858f7aad..f5793de5 100644
--- a/src/jtag/commands.h
+++ b/src/jtag/commands.h
@@ -62,13 +62,12 @@ struct statemove_command {
tap_state_t end_state;
};
-typedef struct pathmove_command_s
-{
+struct pathmove_command {
/// number of states in *path
int num_states;
/// states that have to be passed
tap_state_t* path;
-} pathmove_command_t;
+};
typedef struct runtest_command_s
{
@@ -114,7 +113,7 @@ typedef union jtag_command_container_u
{
struct scan_command* scan;
struct statemove_command* statemove;
- pathmove_command_t* pathmove;
+ struct pathmove_command* pathmove;
runtest_command_t* runtest;
stableclocks_command_t* stableclocks;
reset_command_t* reset;
diff --git a/src/jtag/driver.c b/src/jtag/driver.c
index 6f205734..83ac56c4 100644
--- a/src/jtag/driver.c
+++ b/src/jtag/driver.c
@@ -392,7 +392,7 @@ int interface_jtag_add_pathmove(int num_states, const tap_state_t *path)
cmd->type = JTAG_PATHMOVE;
- cmd->cmd.pathmove = cmd_queue_alloc(sizeof(pathmove_command_t));
+ cmd->cmd.pathmove = cmd_queue_alloc(sizeof(struct pathmove_command));
cmd->cmd.pathmove->num_states = num_states;
cmd->cmd.pathmove->path = cmd_queue_alloc(sizeof(tap_state_t) * num_states);
diff --git a/src/jtag/gw16012.c b/src/jtag/gw16012.c
index dfc07be2..eb47187f 100644
--- a/src/jtag/gw16012.c
+++ b/src/jtag/gw16012.c
@@ -183,7 +183,7 @@ static void gw16012_state_move(void)
tap_set_state(tap_get_end_state());
}
-static void gw16012_path_move(pathmove_command_t *cmd)
+static void gw16012_path_move(struct pathmove_command *cmd)
{
int num_states = cmd->num_states;
int state_count;
diff --git a/src/jtag/rlink/rlink.c b/src/jtag/rlink/rlink.c
index db91698e..bc354575 100644
--- a/src/jtag/rlink/rlink.c
+++ b/src/jtag/rlink/rlink.c
@@ -929,7 +929,7 @@ void rlink_state_move(void) {
}
static
-void rlink_path_move(pathmove_command_t *cmd)
+void rlink_path_move(struct pathmove_command *cmd)
{
int num_states = cmd->num_states;
int state_count;
diff --git a/src/jtag/usbprog.c b/src/jtag/usbprog.c
index 06a9673f..9eda6e08 100644
--- a/src/jtag/usbprog.c
+++ b/src/jtag/usbprog.c
@@ -57,7 +57,7 @@ static int usbprog_quit(void);
static void usbprog_end_state(tap_state_t state);
static void usbprog_state_move(void);
-static void usbprog_path_move(pathmove_command_t *cmd);
+static void usbprog_path_move(struct pathmove_command *cmd);
static void usbprog_runtest(int num_cycles);
static void usbprog_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size);
@@ -249,7 +249,7 @@ static void usbprog_state_move(void)
tap_set_state(tap_get_end_state());
}
-static void usbprog_path_move(pathmove_command_t *cmd)
+static void usbprog_path_move(struct pathmove_command *cmd)
{
int num_states = cmd->num_states;
int state_count;