From 96f59349f7136121e1ea52799ef1377d86b0dc2f Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 31 Jul 2016 22:34:03 +0200 Subject: Revert "Update to libusb 1.0.20" --- commandline/library/micronucleus_lib.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'commandline/library/micronucleus_lib.h') diff --git a/commandline/library/micronucleus_lib.h b/commandline/library/micronucleus_lib.h index ce31f97..b691fa4 100644 --- a/commandline/library/micronucleus_lib.h +++ b/commandline/library/micronucleus_lib.h @@ -6,7 +6,7 @@ (c) 2012 by ihsan Kehribar Changes for Micronucleus protocol version V2.x (c) 2014 T. Bo"scke - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to @@ -23,14 +23,14 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. + SOFTWARE. */ /******************************************************************************** * Header files ********************************************************************************/ #if defined WIN - #include // this is libusb, see http://libusb.sourceforge.net/ + #include // this is libusb, see http://libusb.sourceforge.net/ #else #include // this is libusb, see http://libusb.sourceforge.net/ #endif @@ -64,7 +64,7 @@ typedef struct _micronucleus_version { // handle representing one micronucleus device typedef struct _micronucleus { - libusb_device_handle *device; + usb_dev_handle *device; // general information about device micronucleus_version version; unsigned int flash_size; // programmable size (in bytes) of progmem @@ -107,10 +107,4 @@ int micronucleus_writeFlash(micronucleus* deviceHandle, unsigned int program_len int micronucleus_startApp(micronucleus* deviceHandle); /*******************************************************************************/ -/******************************************************************************** -* Disconnects from the device and deinitializes libusb -********************************************************************************/ -void micronucleus_disconnect(micronucleus* deviceHandle); -/*******************************************************************************/ - #endif -- cgit v1.2.3