sleep_command_t -> struct sleep_command
Remove misleading typedef from struct sleep_command.
This commit is contained in:
parent
cf2e402d71
commit
22b220ad7f
|
@ -95,11 +95,10 @@ struct end_state_command {
|
||||||
tap_state_t end_state;
|
tap_state_t end_state;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct sleep_command_s
|
struct sleep_command {
|
||||||
{
|
|
||||||
/// number of microseconds to sleep
|
/// number of microseconds to sleep
|
||||||
uint32_t us;
|
uint32_t us;
|
||||||
} sleep_command_t;
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines a container type that hold a pointer to a JTAG command
|
* 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 stableclocks_command* stableclocks;
|
||||||
struct reset_command* reset;
|
struct reset_command* reset;
|
||||||
struct end_state_command* end_state;
|
struct end_state_command* end_state;
|
||||||
sleep_command_t* sleep;
|
struct sleep_command* sleep;
|
||||||
} jtag_command_container_t;
|
} jtag_command_container_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -458,7 +458,7 @@ int interface_jtag_add_sleep(uint32_t us)
|
||||||
|
|
||||||
cmd->type = JTAG_SLEEP;
|
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;
|
cmd->cmd.sleep->us = us;
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
|
|
Loading…
Reference in New Issue