X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fjtag%2Fusbprog.c;h=6c416644bff9e12405ce247fea9583e3b3db1584;hb=c5949a03a7a6cff4d4c209e81736bcb7548a6e88;hp=487e9b1611d83e1fd7911e947bd493b398838a47;hpb=a3e84343e202eb70ebce0ec1e8b15d7f9ce57f00;p=openocd.git diff --git a/src/jtag/usbprog.c b/src/jtag/usbprog.c index 487e9b1611..6c416644bf 100644 --- a/src/jtag/usbprog.c +++ b/src/jtag/usbprog.c @@ -59,7 +59,7 @@ 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_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 = { @@ -130,7 +130,7 @@ static int usbprog_execute_queue(void) jtag_command_t *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); @@ -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<