X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fusbprog.c;h=7abb0ca330908081645cda0be67ca0e829c1ba73;hp=487e9b1611d83e1fd7911e947bd493b398838a47;hb=246068fd8985b293d7109058f83c57f6c22a4336;hpb=a3e84343e202eb70ebce0ec1e8b15d7f9ce57f00 diff --git a/src/jtag/usbprog.c b/src/jtag/usbprog.c index 487e9b1611..7abb0ca330 100644 --- a/src/jtag/usbprog.c +++ b/src/jtag/usbprog.c @@ -57,11 +57,11 @@ static int usbprog_quit(void); static void usbprog_end_state(tap_state_t state); static void usbprog_state_move(void); -static void usbprog_path_move(pathmove_command_t *cmd); +static void usbprog_path_move(struct pathmove_command *cmd); static void usbprog_runtest(int num_cycles); -static void usbprog_scan(bool ir_scan, enum scan_type type, u8 *buffer, int scan_size); +static void usbprog_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size); -jtag_interface_t usbprog_interface = +struct jtag_interface usbprog_interface = { .name = "usbprog", .execute_queue = usbprog_execute_queue, @@ -127,10 +127,10 @@ static int usbprog_register_commands(struct command_context_s *cmd_ctx) static int usbprog_execute_queue(void) { - jtag_command_t *cmd = jtag_command_queue; /* currently processed command */ + struct jtag_command *cmd = jtag_command_queue; /* currently processed command */ int scan_size; enum scan_type type; - u8 *buffer; + uint8_t *buffer; while (cmd) { @@ -237,7 +237,7 @@ static void usbprog_end_state(tap_state_t state) static void usbprog_state_move(void) { int i = 0, tms = 0; - u8 tms_scan = tap_get_tms_path(tap_get_state(), tap_get_end_state()); + uint8_t tms_scan = tap_get_tms_path(tap_get_state(), tap_get_end_state()); int tms_count = tap_get_tms_path_len(tap_get_state(), tap_get_end_state()); usbprog_jtag_write_tms(usbprog_jtag_handle, (char)tms_scan); @@ -249,7 +249,7 @@ static void usbprog_state_move(void) tap_set_state(tap_get_end_state()); } -static void usbprog_path_move(pathmove_command_t *cmd) +static void usbprog_path_move(struct pathmove_command *cmd) { int num_states = cmd->num_states; int state_count; @@ -328,7 +328,7 @@ static void usbprog_runtest(int num_cycles) */ } -static void usbprog_scan(bool ir_scan, enum scan_type type, u8 *buffer, int scan_size) +static void usbprog_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size) { tap_state_t saved_end_state = tap_get_end_state(); @@ -370,14 +370,14 @@ static void usbprog_scan(bool ir_scan, enum scan_type type, u8 *buffer, int scan static void usbprog_write(int tck, int tms, int tdi) { - unsigned char output_value=0x00; + unsigned char output_value = 0x00; if (tms) - output_value |= (1<