sleep_command_t -> struct sleep_command
[fw/openocd] / src / jtag / driver.c
index 6f205734903e42ba5ae2c1993f670f6395a4cb1e..5e8c6be64188e80d7daf4fc4c8e966515a75446f 100644 (file)
@@ -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);
 
@@ -411,7 +411,7 @@ int interface_jtag_add_runtest(int num_cycles, tap_state_t state)
 
        cmd->type = JTAG_RUNTEST;
 
-       cmd->cmd.runtest = cmd_queue_alloc(sizeof(runtest_command_t));
+       cmd->cmd.runtest = cmd_queue_alloc(sizeof(struct runtest_command));
        cmd->cmd.runtest->num_cycles = num_cycles;
        cmd->cmd.runtest->end_state = state;
 
@@ -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;
@@ -442,7 +442,7 @@ int interface_jtag_add_reset(int req_trst, int req_srst)
 
        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->srst = req_srst;
 
@@ -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;