diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2013-04-05 08:06:10 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2013-04-05 08:06:10 +0000 |
commit | b0000b919c1716206d81232a2269ddb816d58e85 (patch) | |
tree | 752c2840a2c207360bcabaebfdbd66ceabc26c87 /buspirate_spi.c | |
parent | b5f53e34d4fc6103f99be29947ea64a3c3ed0119 (diff) | |
download | flashrom-b0000b919c1716206d81232a2269ddb816d58e85.tar.gz |
usleep() is not found in all versions of MinGW, use Sleep() on Windows.
Handle long sleeps on non-Windows correctly.
Signed-off-by: Maksim Kuleshov <mmcx@mail.ru>
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1667 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'buspirate_spi.c')
-rw-r--r-- | buspirate_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buspirate_spi.c b/buspirate_spi.c index d2ebc75..9d229f4 100644 --- a/buspirate_spi.c +++ b/buspirate_spi.c @@ -286,7 +286,7 @@ int buspirate_spi_init(void) /* The Bus Pirate can't handle UART input buffer overflow in BBIO mode, and sending a sequence * of 0x00 too fast apparently triggers such an UART input buffer overflow. */ - usleep(10000); + internal_sleep(10000); } /* We know that 20 commands of \0 should elicit at least one BBIO1 response. */ if ((ret = buspirate_wait_for_string(bp_commbuf, "BBIO"))) |