reset_command_t -> struct reset_command

Remove misleading typedef from struct reset_command.
__archive__
Zachary T Welch 2009-11-13 05:57:47 -08:00
parent 2fecae46f6
commit 8cc8c0544f
2 changed files with 4 additions and 5 deletions

View File

@ -83,13 +83,12 @@ struct stableclocks_command {
}; };
typedef struct reset_command_s struct reset_command {
{
/// Set TRST output: 0 = deassert, 1 = assert, -1 = no change /// Set TRST output: 0 = deassert, 1 = assert, -1 = no change
int trst; int trst;
/// Set SRST output: 0 = deassert, 1 = assert, -1 = no change /// Set SRST output: 0 = deassert, 1 = assert, -1 = no change
int srst; int srst;
} reset_command_t; };
typedef struct end_state_command_s typedef struct end_state_command_s
{ {
@ -114,7 +113,7 @@ typedef union jtag_command_container_u
struct pathmove_command* pathmove; struct pathmove_command* pathmove;
struct runtest_command* runtest; struct runtest_command* runtest;
struct stableclocks_command* stableclocks; struct stableclocks_command* stableclocks;
reset_command_t* reset; struct reset_command* reset;
end_state_command_t* end_state; end_state_command_t* end_state;
sleep_command_t* sleep; sleep_command_t* sleep;
} jtag_command_container_t; } jtag_command_container_t;

View File

@ -442,7 +442,7 @@ int interface_jtag_add_reset(int req_trst, int req_srst)
cmd->type = JTAG_RESET; cmd->type = JTAG_RESET;
cmd->cmd.reset = cmd_queue_alloc(sizeof(reset_command_t)); cmd->cmd.reset = cmd_queue_alloc(sizeof(struct reset_command));
cmd->cmd.reset->trst = req_trst; cmd->cmd.reset->trst = req_trst;
cmd->cmd.reset->srst = req_srst; cmd->cmd.reset->srst = req_srst;