From 889d89bc652682763a4b6021d988195a1d8acb84 Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 14 Aug 2020 20:20:25 -0700 Subject: update qhy sdk --- include/qhy/config.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 include/qhy/config.h (limited to 'include/qhy/config.h') diff --git a/include/qhy/config.h b/include/qhy/config.h new file mode 100644 index 0000000..6f3a5bb --- /dev/null +++ b/include/qhy/config.h @@ -0,0 +1,49 @@ +#ifndef __CONFIG_H__ +#define __CONFIG_H__ + + + + + + +#define CALLBACK_MODE_SUPPORT 1 +#define IMAGEQUEUE_ORIG_MODE 1 + + +#define version_year 20 +#define version_month 7 +#define version_day 26 +#define version_subday 1 + +#if defined (_WIN32) +#define QHYCCD_OPENCV_SUPPORT +#define WINDOWS_PTHREAD_SUPPORT 1 +#define WINPCAP_MODE_SUPPORT 0 +#define PCIE_MODE_SUPPORT 1 +#define CYUSB_MODE_SUPPORT 1 +#define WINUSB_MODE_SUPPORT 1 +#define LIBUSB_MODE_SUPPORT 0 +#define PCIE_MODE_TEST 1 +#else +#undef QHYCCD_OPENCV_SUPPORT +#define WINDOWS_PTHREAD_SUPPORT 0 +#define WINPCAP_MODE_SUPPORT 0 + +#if defined(__arm__) || defined (__arm64__) || defined (__aarch64__) || defined(__APPLE__)||defined (__ANDROID__) +#define PCIE_MODE_SUPPORT 0 +#elif defined(__i386__) || defined(__x86_64__) +#define PCIE_MODE_SUPPORT 1 +#else +#define PCIE_MODE_SUPPORT 0 +#endif + + +#define CYUSB_MODE_SUPPORT 0 +#define WINUSB_MODE_SUPPORT 0 +#define LIBUSB_MODE_SUPPORT 1 +#endif + + + +#endif + -- cgit v1.1