X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fcommands.h;h=509ca5aadb0ab7fdb286588183c3e5e002f3cce6;hp=d13a9ab448f7c0fab27c220159b7acefab132625;hb=2fecae46f62ca98657d650de9fc73d44247971e8;hpb=2ddeec9db5a8771c948294b7194778a95295b7a0 diff --git a/src/jtag/commands.h b/src/jtag/commands.h index d13a9ab448..509ca5aadb 100644 --- a/src/jtag/commands.h +++ b/src/jtag/commands.h @@ -57,34 +57,30 @@ struct scan_command { tap_state_t end_state; }; -typedef struct statemove_command_s -{ +struct statemove_command { /// state in which JTAG commands should finish tap_state_t end_state; -} statemove_command_t; +}; -typedef struct pathmove_command_s -{ +struct pathmove_command { /// number of states in *path int num_states; /// states that have to be passed tap_state_t* path; -} pathmove_command_t; +}; -typedef struct runtest_command_s -{ +struct runtest_command { /// number of cycles to spend in Run-Test/Idle state int num_cycles; /// state in which JTAG commands should finish tap_state_t end_state; -} runtest_command_t; +}; -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,10 +110,10 @@ typedef struct sleep_command_s typedef union jtag_command_container_u { struct scan_command* scan; - statemove_command_t* statemove; - pathmove_command_t* pathmove; - runtest_command_t* runtest; - stableclocks_command_t* stableclocks; + struct statemove_command* statemove; + struct pathmove_command* pathmove; + struct runtest_command* runtest; + struct stableclocks_command* stableclocks; reset_command_t* reset; end_state_command_t* end_state; sleep_command_t* sleep;