]> git.sur5r.net Git - openocd/commitdiff
sleep_command_t -> struct sleep_command
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 14:01:19 +0000 (06:01 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:05 +0000 (11:58 -0800)
Remove misleading typedef from struct sleep_command.

src/jtag/commands.h
src/jtag/driver.c

index 9d0747a6d6c33e115d749e47f0d6a24f427982ea..5c2744359464545e6408018a202bd4a160d39f2a 100644 (file)
@@ -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;
 
 /**
index 42403a0a71245b41a2f278274042c27ad3bf896f..5e8c6be64188e80d7daf4fc4c8e966515a75446f 100644 (file)
@@ -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;