[flashrom] [PATCH 1/3] buspirate_spi.c: usleep() not found in MinGW, replaced to internal_delay()

Maksim Kuleshov mmcx at mail.ru
Mon Apr 1 17:08:22 CEST 2013


>From d831258e8d7a3e3821d605703f11e72ef022d56f Mon Sep 17 00:00:00 2001
From: Maksim Kuleshov <mmcx at mail.ru>
Date: Mon, 1 Apr 2013 18:56:07 +0400
Subject: [PATCH 1/3] buspirate_spi.c: usleep() not found in MinGW, replaced
 to internal_delay()

Signed-off-by: Maksim Kuleshov <mmcx at mail.ru>
---
 buspirate_spi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buspirate_spi.c b/buspirate_spi.c
index d2ebc75..64128dd 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_delay(10000);
 	}
 	/* We know that 20 commands of \0 should elicit at least one BBIO1 response. */
 	if ((ret = buspirate_wait_for_string(bp_commbuf, "BBIO")))
-- 
1.7.10.4





More information about the flashrom mailing list