Commit Graph

23 Commits

Author SHA1 Message Date
Daniel Beer 7a0a30f626 usb_bulk_read: may return 0 on timeout.
Pointed out by Jasper Lievisse Adriaanse <jasper@openbsd.org>.
2011-09-07 08:18:00 +12:00
Daniel Beer 345ad4ae2d Bug fix: usb_set_configuration causes problems on Linux.
Added #ifdef WIN32 around these calls.
2011-07-30 12:51:44 +12:00
Tamas TEVESZ ea0c4d6720 Preprocessor related fix-ups.
- olimex.c, rf2500.c, uif.c:
    add missing includes for malloc(), free() and atoi().
  - uif.c: define serial port speeds based on need, not platform.
  - uif.c: if !__linux__, stub open_olimex_iso() is not needed.
2011-07-26 08:54:03 +12:00
Daniel Beer 067dd504a0 Set configuration for libusb-win32 compatibility.
Changes suggested by Xiaofan Chen <xiaofanc@gmail.com>.
2011-07-22 09:20:29 +12:00
Daniel Beer 3feecd30b6 Added -s option to distinguish between devices by serial number.
Based on patch by Tamas Tevesz <ice@extreme.hu>.
2011-07-18 14:56:29 +12:00
Jasper Lievisse Adriaanse e37eb1be6c More proper ifdef blocks for Linux-only bits. 2010-12-06 12:25:45 +13:00
Daniel Beer 87f89adc44 All output now goes through buffering/filtering.
The following substitutions have been made:

    printf -> printc
    fprintf(stderr, ...) -> printc_err(...)
    perror -> pr_error
2010-08-17 11:07:03 +12:00
Daniel Beer 336da5d7ea Fix RF2500 support on OS/X. 2010-08-11 13:01:18 +12:00
Daniel Beer 4824ab7750 Added support for multiple instances of USB devices. 2010-06-28 15:47:50 +12:00
Daniel Beer c84f2ab579 Modifications to compile on Cygwin. 2010-05-13 16:45:38 +12:00
Daniel Beer b8a3ef41c7 Use stdint.h instead of sys/types.h. 2010-05-13 12:57:21 +12:00
Tadashi G. Takaoka 961e7015c9 Make it easier to compile on Mac OS X. 2010-05-12 10:13:39 +12:00
Daniel Beer c981893254 Transports are now objects. 2010-04-30 16:57:57 +12:00
Daniel Beer 90d39a96f5 Move some unrelated functions out of parse.c 2010-04-21 14:12:12 +12:00
Daniel Beer 40d299d001 Colorize some more output. 2010-04-10 16:41:57 +12:00
Daniel Beer 8bcccc783f Tidied up error message prefixes. 2010-01-12 21:51:06 +13:00
Daniel Beer b20a7a5576 Fix up copyright messages. 2010-01-08 21:17:24 +13:00
Daniel Beer 1baa04a565 Implemented FET bootloader support (memory read only). 2010-01-08 18:39:07 +13:00
Daniel Beer 0f15fd3e21 Move utilities into separate file. 2010-01-08 18:15:30 +13:00
Daniel Beer 7505ce654d Separated transport handling from FET control. 2010-01-06 14:51:04 +13:00
Daniel Beer 1d3b4f3f81 Added ELF support, made all buffers u_int8_t. 2010-01-05 17:21:45 +13:00
Daniel Beer 3e0f736e1d Implemented UIF support (untested).
RF2500 support is tested and still working.
2009-11-17 15:11:46 +13:00
Daniel Beer 22955480b0 Separated subsystems and tidied up code. 2009-11-17 12:52:10 +13:00