diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 05:56:26 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:05 -0800 |
commit | 2fecae46f62ca98657d650de9fc73d44247971e8 (patch) | |
tree | 5ae01101da6828cf2009821885582861fe8250a8 /src | |
parent | 5f6d8ecf8c2cf1427a8677155843081d07ff57c4 (diff) | |
download | openocd_libswd-2fecae46f62ca98657d650de9fc73d44247971e8.tar.gz openocd_libswd-2fecae46f62ca98657d650de9fc73d44247971e8.tar.bz2 openocd_libswd-2fecae46f62ca98657d650de9fc73d44247971e8.tar.xz openocd_libswd-2fecae46f62ca98657d650de9fc73d44247971e8.zip |
stableclocks_command_t -> struct stableclocks_command
Remove misleading typedef from struct stableclocks_command.
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/commands.h | 7 | ||||
-rw-r--r-- | src/jtag/driver.c | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/jtag/commands.h b/src/jtag/commands.h index f43a4149..509ca5aa 100644 --- a/src/jtag/commands.h +++ b/src/jtag/commands.h @@ -77,11 +77,10 @@ struct runtest_command { }; -typedef struct stableclocks_command_s -{ +struct stableclocks_command { /// number of clock cycles that should be sent int num_cycles; -} stableclocks_command_t; +}; typedef struct reset_command_s @@ -114,7 +113,7 @@ typedef union jtag_command_container_u struct statemove_command* statemove; struct pathmove_command* pathmove; struct runtest_command* runtest; - stableclocks_command_t* stableclocks; + struct stableclocks_command* stableclocks; reset_command_t* reset; end_state_command_t* end_state; sleep_command_t* sleep; diff --git a/src/jtag/driver.c b/src/jtag/driver.c index 71cde0ec..1f28d183 100644 --- a/src/jtag/driver.c +++ b/src/jtag/driver.c @@ -427,7 +427,7 @@ int interface_jtag_add_clocks(int num_cycles) cmd->type = JTAG_STABLECLOCKS; - cmd->cmd.stableclocks = cmd_queue_alloc(sizeof(stableclocks_command_t)); + cmd->cmd.stableclocks = cmd_queue_alloc(sizeof(struct stableclocks_command)); cmd->cmd.stableclocks->num_cycles = num_cycles; return ERROR_OK; |