summaryrefslogtreecommitdiff
path: root/src/jtag
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 06:01:19 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:05 -0800
commit22b220ad7f42ea288b1762692d079ecbde10ba24 (patch)
treec61119208ece4ee95fa8efd72e51837612a3f2e7 /src/jtag
parentcf2e402d71fa39dc8138985027b7ab8f4d510e81 (diff)
downloadopenocd+libswd-22b220ad7f42ea288b1762692d079ecbde10ba24.tar.gz
openocd+libswd-22b220ad7f42ea288b1762692d079ecbde10ba24.tar.bz2
openocd+libswd-22b220ad7f42ea288b1762692d079ecbde10ba24.tar.xz
openocd+libswd-22b220ad7f42ea288b1762692d079ecbde10ba24.zip
sleep_command_t -> struct sleep_command
Remove misleading typedef from struct sleep_command.
Diffstat (limited to 'src/jtag')
-rw-r--r--src/jtag/commands.h7
-rw-r--r--src/jtag/driver.c2
2 files changed, 4 insertions, 5 deletions
diff --git a/src/jtag/commands.h b/src/jtag/commands.h
index 9d0747a6..5c274435 100644
--- a/src/jtag/commands.h
+++ b/src/jtag/commands.h
@@ -95,11 +95,10 @@ struct end_state_command {
tap_state_t end_state;
};
-typedef struct sleep_command_s
-{
+struct sleep_command {
/// number of microseconds to sleep
uint32_t us;
-} sleep_command_t;
+};
/**
* Defines a container type that hold a pointer to a JTAG command
@@ -114,7 +113,7 @@ typedef union jtag_command_container_u
struct stableclocks_command* stableclocks;
struct reset_command* reset;
struct end_state_command* end_state;
- sleep_command_t* sleep;
+ struct sleep_command* sleep;
} jtag_command_container_t;
/**
diff --git a/src/jtag/driver.c b/src/jtag/driver.c
index 42403a0a..5e8c6be6 100644
--- a/src/jtag/driver.c
+++ b/src/jtag/driver.c
@@ -458,7 +458,7 @@ int interface_jtag_add_sleep(uint32_t us)
cmd->type = JTAG_SLEEP;
- cmd->cmd.sleep = cmd_queue_alloc(sizeof(sleep_command_t));
+ cmd->cmd.sleep = cmd_queue_alloc(sizeof(struct sleep_command));
cmd->cmd.sleep->us = us;
return ERROR_OK;