version bump of software suppport for Hardware Version 2 + added readme

This commit is contained in:
2018-12-30 21:34:34 +01:00
parent 50ab4dffef
commit 8dfece7633
4 changed files with 109 additions and 107 deletions

View File

@@ -7,7 +7,7 @@
#include <stdio.h>
#include <string.h>
#ifdef ATMEGA
#include <usb.h>
#include <libusb.h>
#endif
struct TransStruct {
uint16_t time;
@@ -30,11 +30,11 @@ class HardwareSetup : public QThread {
bool shellBefore;
bool deaBefore;
#ifdef ATMEGA
usb_dev_handle * handle;
int usbGetDescriptorString(usb_dev_handle * dev, int index, int langid,
char * buf, int buflen);
usb_dev_handle * usbOpenDevice(int vendor, char * vendorName, int product,
char * productName);
libusb_device_handle * handle;
libusb_context * usbContext;
int usbGetDescriptorString(libusb_device_handle * dev, int index,
int langid, char * buf, int buflen);
libusb_device_handle * usbOpenDevice(int vendor, int product);
#endif
int fd;