projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix up broken module build tests.
[pub/USBasp.git]
/
Bootloaders
/
HID
/
HostLoaderApp
/
hid_bootloader_cli.c
diff --git
a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
index
f40a3e6
..
cdee1c3
100644
(file)
--- a/
Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
+++ b/
Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
@@
-657,6
+657,11
@@
int hard_reboot(void)
#include <dev/usb/usb_ioctl.h>
#endif
#include <dev/usb/usb_ioctl.h>
#endif
+#ifndef USB_GET_DEVICEINFO
+# define USB_GET_DEVICEINFO 0
+# error The USB_GET_DEVICEINFO ioctl() value is not defined for your system.
+#endif
+
int open_usb_device(int vid, int pid)
{
int r, fd;
int open_usb_device(int vid, int pid)
{
int r, fd;
@@
-929,8
+934,8
@@
int printf_verbose(const char *format, ...)
void delay(double seconds)
{
void delay(double seconds)
{
- #ifdef WIN32
-
S
leep(seconds * 1000.0);
+ #ifdef
USE_
WIN32
+
s
leep(seconds * 1000.0);
#else
usleep(seconds * 1000000.0);
#endif
#else
usleep(seconds * 1000000.0);
#endif
@@
-946,7
+951,7
@@
void die(const char *str, ...)
exit(1);
}
exit(1);
}
-#if defined
(WIN32)
+#if defined
USE_WIN32
#define strcasecmp stricmp
#endif
#define strcasecmp stricmp
#endif