From 9e02e561fa6bd2992f29dad905f1daed6a78fba6 Mon Sep 17 00:00:00 2001 From: joerg_wunsch Date: Fri, 1 Jan 2010 08:55:33 +0000 Subject: [PATCH] jtagmkII_smc_init32(): replace sleep() by usleep() for win32 compatibility. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@881 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 5 +++++ jtagmkII.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1f993cbc..eaa4e13a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-01 Joerg Wunsch + + * jtagmkII.c (jtagmkII_smc_init32): replace sleep() by usleep() for + win32 compatibility. + 2009-11-09 David Hoerl * fileio.c: ihex2bin did not properly handle files > 64K bytes diff --git a/jtagmkII.c b/jtagmkII.c index 63f344e5..caa63465 100644 --- a/jtagmkII.c +++ b/jtagmkII.c @@ -2847,7 +2847,7 @@ static int jtagmkII_smc_init32(PROGRAMMER * pgm) status = jtagmkII_write_SABaddr(pgm, 0xffff0c00, 0x05, 0x0000004); if(status < 0) {lineno = __LINE__; goto eRR;} // Power Manager status = jtagmkII_write_SABaddr(pgm, 0xffff0c00, 0x05, 0x0000005); if(status < 0) {lineno = __LINE__; goto eRR;} - sleep(1); + usleep(1000000); val = jtagmkII_read_SABaddr(pgm, 0xfffe1408, 0x05); if(val != 0x0000a001) {lineno = __LINE__; goto eRR;} // PLL 0