summaryrefslogtreecommitdiff
path: root/src/stlink-lib/libusb_settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stlink-lib/libusb_settings.h')
-rw-r--r--src/stlink-lib/libusb_settings.h45
1 files changed, 26 insertions, 19 deletions
diff --git a/src/stlink-lib/libusb_settings.h b/src/stlink-lib/libusb_settings.h
index fea2823..b0a51ad 100644
--- a/src/stlink-lib/libusb_settings.h
+++ b/src/stlink-lib/libusb_settings.h
@@ -1,24 +1,31 @@
+/*
+ * File: libusb_settings.h
+ *
+ * Settings for libusb library
+ */
+
#ifndef LIBUSB_SETTINGS_H
#define LIBUSB_SETTINGS_H
#include <libusb.h>
/*
-
- libusb ver | LIBUSB_API_VERSION
- -----------+--------------------
- v1.0.13 | 0x01000100
- v1.0.14 | 0x010000FF
- v1.0.15 | 0x01000101
- v1.0.16 | 0x01000102
- v1.0.17 | 0x01000102
- v1.0.18 | 0x01000102
- v1.0.19 | 0x01000103
- v1.0.20 | 0x01000104
- v1.0.21 | 0x01000105
- v1.0.22 | 0x01000106
- v1.0.23 | 0x01000107
-
+ * libusb ver | LIBUSB_API_VERSION
+ * -----------+--------------------
+ * v1.0.13 | 0x01000100
+ * v1.0.14 | 0x010000FF
+ * v1.0.15 | 0x01000101
+ * v1.0.16 | 0x01000102
+ * v1.0.17 | 0x01000102
+ * v1.0.18 | 0x01000102
+ * v1.0.19 | 0x01000103
+ * v1.0.20 | 0x01000104
+ * v1.0.21 | 0x01000105
+ * v1.0.22 | 0x01000106
+ * v1.0.23 | 0x01000107
+ * v1.0.24 | 0x01000108
+ * v1.0.25 | 0x01000109
+ * v1.0.26 | 0x01000110
*/
#if defined (__FreeBSD__)
@@ -31,12 +38,12 @@
#if defined (__FreeBSD__)
#define MINIMAL_API_VERSION 0x01000102 // v1.0.16
+#elif defined (__OpenBSD__)
+ #define MINIMAL_API_VERSION 0x01000106 // v1.0.22
#elif defined (__linux__)
- #define MINIMAL_API_VERSION 0x01000104 // v1.0.20
-#elif defined (__APPLE__)
- #define MINIMAL_API_VERSION 0x01000104 // v1.0.20
+ #define MINIMAL_API_VERSION 0x01000106 // v1.0.22
#elif defined (_WIN32)
- #define MINIMAL_API_VERSION 0x01000104 // v1.0.20
+ #define MINIMAL_API_VERSION 0x01000109 // v1.0.25
#endif
#if (LIBUSB_API_VERSION < MINIMAL_API_VERSION)