]> git.sur5r.net Git - openocd/commitdiff
jtag/drivers: trivial variable renaming
authorRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 24 Jun 2013 02:51:22 +0000 (04:51 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 15 Jul 2013 10:07:32 +0000 (10:07 +0000)
Rename ublast_sleep() time variable from ms to us as the
unit is in micro-seconds.

Change-Id: I07ff9c36d302d5d59edb8a5faa73d78cdd6145a4
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Reviewed-on: http://openocd.zylin.com/1457
Tested-by: jenkins
Reviewed-by: Xiaofan <xiaofanc@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/usb_blaster/usb_blaster.c

index ccbed0e2be58439f2a7ece61612f607961f5156e..00a2cd084bd4ee947c2c78ed789cefe1c610958b 100644 (file)
@@ -724,10 +724,10 @@ static int ublast_scan(struct scan_command *cmd)
        return ret;
 }
 
-static void ublast_msleep(int ms)
+static void ublast_usleep(int us)
 {
-       DEBUG_JTAG_IO("%s(ms=%d)",  __func__, ms);
-       jtag_sleep(ms);
+       DEBUG_JTAG_IO("%s(us=%d)",  __func__, us);
+       jtag_sleep(us);
 }
 
 static int ublast_execute_queue(void)
@@ -758,7 +758,7 @@ static int ublast_execute_queue(void)
                        ublast_tms(cmd->cmd.tms);
                        break;
                case JTAG_SLEEP:
-                       ublast_msleep(cmd->cmd.sleep->us);
+                       ublast_usleep(cmd->cmd.sleep->us);
                        break;
                case JTAG_SCAN:
                        ret = ublast_scan(cmd->cmd.scan);