diff options
author | Tim <cpldcpu@gmail.com> | 2016-07-31 22:34:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-31 22:34:32 +0200 |
commit | 7a53ce9e539a18fb46f7dc8e759f14833b10cc0c (patch) | |
tree | a6cdc7a5c889409cb6d32932e36e1c660a526880 /commandline/library/micronucleus_lib.h | |
parent | d94a1bdd26a5ed0ebec3532715d406153f7b5811 (diff) | |
parent | 96f59349f7136121e1ea52799ef1377d86b0dc2f (diff) | |
download | micronucleus-7a53ce9e539a18fb46f7dc8e759f14833b10cc0c.tar.gz micronucleus-7a53ce9e539a18fb46f7dc8e759f14833b10cc0c.tar.bz2 micronucleus-7a53ce9e539a18fb46f7dc8e759f14833b10cc0c.zip |
Merge pull request #82 from micronucleus/revert-79-libusb-1.0.20
Revert "Update to libusb 1.0.20"
Diffstat (limited to 'commandline/library/micronucleus_lib.h')
-rw-r--r-- | commandline/library/micronucleus_lib.h | 14 |
1 files changed, 4 insertions, 10 deletions
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 <ihsan@kehribar.me> 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 <libusb.h> // this is libusb, see http://libusb.sourceforge.net/ + #include <lusb0_usb.h> // this is libusb, see http://libusb.sourceforge.net/ #else #include <usb.h> // 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 |