]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/hid-flasher/sleep.h
Add flasher from SVN r623 for HID bootprom and current Mac OS X kext
[proxmark3-svn] / client / hid-flasher / sleep.h
diff --git a/client/hid-flasher/sleep.h b/client/hid-flasher/sleep.h
new file mode 100644 (file)
index 0000000..81f4e06
--- /dev/null
@@ -0,0 +1,24 @@
+//-----------------------------------------------------------------------------
+// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
+//
+// This code is licensed to you under the terms of the GNU GPL, version 2 or,
+// at your option, any later version. See the LICENSE.txt file for the text of
+// the license.
+//-----------------------------------------------------------------------------
+// platform-independant sleep macros
+//-----------------------------------------------------------------------------
+
+#ifndef SLEEP_H__
+#define SLEEP_H__
+
+#ifdef WIN32
+#include <windows.h>
+#define sleep(n) Sleep(1000 * n)
+#define msleep(n) Sleep(n)
+#else
+#include <unistd.h>
+#define msleep(n) usleep(1000 * n)
+#endif
+
+#endif
+
Impressum, Datenschutz