On Wed, 03 Apr 2013 01:21:11 +0200 Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net wrote:
I now see that the patch is correct. However, the code for non-Windows was broken as well (too big values for udelay), so I extended your patch a bit.
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
Looks good to me. Acked-by: Stefan Tauner stefan.tauner@student.tuwien.ac.at
Everybody is invited to work on the following when the patch has been merged: http://www.flashrom.org/Easy_projects#Replace_programmer_delay.28.29_with_in...