libftdi
12 years agoUpdate ChangeLog and AUTHORS v0.19
Thomas Jarosch [Mon, 23 May 2011 15:23:59 +0000]
Update ChangeLog and AUTHORS

12 years agomake module-unloading behavior flexible
Thomas Klose [Fri, 20 May 2011 14:51:03 +0000]
make module-unloading behavior flexible

Signed-off-by: Thomas Klose <thomas.klose@hiperscan.com>

12 years agoIncrease version for 0.19 release
Thomas Jarosch [Fri, 20 May 2011 14:35:39 +0000]
Increase version for 0.19 release

12 years agoUpdate ChangeLog
Thomas Jarosch [Fri, 20 May 2011 14:29:41 +0000]
Update ChangeLog

12 years agoAdd Flynn Marquardt to AUTHORS
Thomas Jarosch [Fri, 20 May 2011 14:27:35 +0000]
Add Flynn Marquardt to AUTHORS

12 years agoCorrect ftdi_poll_modem_status() result code
Thomas Jarosch [Fri, 6 May 2011 13:16:03 +0000]
Correct ftdi_poll_modem_status() result code

12 years agoFix cmake build with not remove doc directory for build in source
Evgeny Sinelnikov [Tue, 11 May 2010 07:05:02 +0000]
Fix cmake build with not remove doc directory for build in source

12 years agoFix cmake build of python binding link with libftdi
Evgeny Sinelnikov [Mon, 2 May 2011 12:09:45 +0000]
Fix cmake build of python binding link with libftdi

12 years agoFix libftdi.hpp with include of system ftdi.h
Evgeny Sinelnikov [Sat, 27 Jun 2009 21:52:02 +0000]
Fix libftdi.hpp with include of system ftdi.h

12 years agoFix ftdi_read_pins in python bindings
Chris Zeh [Mon, 2 May 2011 17:19:42 +0000]
Fix ftdi_read_pins in python bindings

12 years agoRevert "Let ftdi_read_data() honor usb_read_timeout"
Thomas Jarosch [Mon, 2 May 2011 17:10:31 +0000]
Revert "Let ftdi_read_data() honor usb_read_timeout"

This reverts commit 3b92d479565a413c7b9f830c34c93886ba366347.
as discussed on the mailinglist.

Conflicts:

src/ftdi.c

13 years agoBetter explanation of ftdi_read_data() behaviour
Uwe Bonnes [Tue, 29 Mar 2011 15:15:49 +0000]
Better explanation of ftdi_read_data() behaviour

On the mailing list, some have come to the conclusion that the 0.17 and 1.0
behaviour of ftdi_read_data() is the most sensible, but needs mor
explanation.

Hopefully the added explanation fullfills this target.
--
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From eec274ebd929611180b3524c66ea61025cd391d9 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Date: Tue, 29 Mar 2011 16:17:43 +0200
Subject: Better explanation of ftdi_read_data() behaviour

13 years agoFix clean up code path in _usb_bulk_write_async (uninitialized memory)
Thomas Jarosch [Mon, 25 Oct 2010 10:57:32 +0000]
Fix clean up code path in _usb_bulk_write_async (uninitialized memory)

13 years agoFix uninitialized memory access of ret variable in async mode
Thomas Jarosch [Mon, 25 Oct 2010 10:34:55 +0000]
Fix uninitialized memory access of ret variable in async mode

13 years agoSupport for FT232R eeprom features
Hermann Kraus [Wed, 18 Aug 2010 07:50:55 +0000]
Support for FT232R eeprom features

From the mailinglist:
Hello!

I added support for creating FT232R-EEPROM images. They differ from
FT232BM images making communication unreliable if you don't get them right:
- Addr 0x00: Bit 6 selects between normal and high-current output mode
- Addr 0x01: IN endpoint size. !!! It is essential to set this to 0x40 to
get reliable communication! !!!
- Addr 0x07: (Device version) Was changed from 0x04 to 0x06
- Addr 0x0B: Invert outputs. Bit numbers:
0 TXD
1 RXD
2 RTS#
3 CTS#
4 DTR#
5 DSR#
6 DCD#
7 RI#
- Addr 0x14-0x16: Change function of CBUS pins. Low nibble of 0x14 is
CBUS0, high nibble CBUS1 and so on.
Values (hex):
TXDEN = 0
PWREN# = 1
RXLED# = 2
TXLED# = 3
TX_RX_LED# = 4
SLEEP# = 5
CLK48 = 6
CLK24 = 7
CLK12 = 8
CLK6 = 9
IO_MODE = A
BIT_WR = B
BIT_RD = C
RXF/TXE/RD/WR = D

It should be noted that 0x14-0x16 are used by the current library to
strings and therefore change behavior depending on the string descriptor.
In images created by FT_Prog 0x17 is 0 so I threat this as reserved.
FT_Prog has problems parsing string descriptor from devices written by
ftdi-eeprom without this patch.

I also have investigated FT2232L-EEPROM (=FT2232C) but have no final
conclusion yet,
because I don't want to change the information in this device. Just some
obvious differences.
- Addr 0x00/0x01: value 0x11 0x08
- Addr 0x07: (Device version) 0x05
- Addr 0x14/0x15: value 0x46 0x00
String descriptors start at 0x16.

13 years agoInclude Hermann Kraus in AUTHORS
Thomas Jarosch [Wed, 18 Aug 2010 07:39:52 +0000]
Include Hermann Kraus in AUTHORS

13 years agoReturn correct size if there's enough data in the read buffer
Hermann Kraus [Wed, 18 Aug 2010 07:36:29 +0000]
Return correct size if there's enough data in the read buffer

From the mailinglist:

The current git version of libftdi contains a critical bug in
ftdi_read_data. If a read from the device returns more data than requested
the function exits with error -127 (documented as "// never reached")
instead of a correct return code.

13 years agoC++ wrapper: Fix infinite recursion in set_bitmode()
Thomas Jarosch [Mon, 16 Aug 2010 16:06:42 +0000]
C++ wrapper: Fix infinite recursion in set_bitmode()

Reported by Hermann Kraus

13 years agoPython wrapper: Fix argument type of ftdi_read_chipid
Flynn Marquardt [Wed, 14 Jul 2010 07:53:17 +0000]
Python wrapper: Fix argument type of ftdi_read_chipid

13 years agogitignore: temporary swp-files created by vim
Martin Zenzes (spacelab1-u) [Thu, 1 Jul 2010 10:49:19 +0000]
gitignore: temporary swp-files created by vim

nothing special here, just a plain .*.swp

Signed-off-by: Martin Zenzes (spacelab1-u) <mzenzes@mega2000.de>

13 years agoFix compilation if async mode is disabled
Thomas Jarosch [Wed, 7 Jul 2010 13:52:11 +0000]
Fix compilation if async mode is disabled

13 years agoLet ftdi_read_data() honor usb_read_timeout
Uwe Bonnes [Fri, 25 Jun 2010 15:41:28 +0000]
Let ftdi_read_data() honor usb_read_timeout

13 years agoFix typo in release checklist
Thomas Jarosch [Mon, 28 Jun 2010 17:12:34 +0000]
Fix typo in release checklist

13 years agoIgnore more swig autogenerated files v0.18
Thomas Jarosch [Fri, 25 Jun 2010 15:40:11 +0000]
Ignore more swig autogenerated files

13 years agoDon't crash in ftdi_eeprom_free() if eeprom is unallocated/already freed
Thomas Jarosch [Fri, 25 Jun 2010 15:38:18 +0000]
Don't crash in ftdi_eeprom_free() if eeprom is unallocated/already freed

13 years agoUpdate autoconf suite on release
Thomas Jarosch [Fri, 25 Jun 2010 15:30:43 +0000]
Update autoconf suite on release

13 years agoWrote changelog for 0.18
Thomas Jarosch [Fri, 25 Jun 2010 15:28:02 +0000]
Wrote changelog for 0.18

13 years agoIncrease libftdi version to 0.18
Thomas Jarosch [Fri, 25 Jun 2010 15:08:54 +0000]
Increase libftdi version to 0.18

13 years agolibftdi: add a --without-docs flag
Mike Frysinger [Tue, 22 Jun 2010 23:02:06 +0000]
libftdi: add a --without-docs flag

Allow people to easily & forcibly disable doxygen support.  This is useful
in builds where we only want the library and nothing else.

The default is unchanged -- configure still searches for doxygen.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

13 years agolibftdi: add a --without-examples configure flag
Mike Frysinger [Tue, 22 Jun 2010 22:46:09 +0000]
libftdi: add a --without-examples configure flag

There's a few places where I'm only concerned with building the libftdi
library (for integrating it into a JTAG program), so the examples are just
noise to me.  As such, add an --without-examples configure flag so people
can easily disable the subdir.  The default is unchanged -- examples are
still compiled & installed.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

13 years agouse AC_CHECK_TOOL for libusb-config
Mike Frysinger [Tue, 22 Jun 2010 22:36:00 +0000]
use AC_CHECK_TOOL for libusb-config

AC_PATH_PROG is for build tools while AC_PATH_TOOL is for the host tools.
Since we want a libusb that is for the host machine and not the build
machine, use the TOOL variant.

I don't personally see the point in using the full path either since the
short name will be found in a PATH lookup, so further change the macro
from the PATH variant to the CHECK variant.

Also drop the incorrect third argument of $PATH.  The third argument is
a fall back value, not the path to search.  Ignoring that, $PATH is the
default value anyways, so no need to specify it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

13 years agoAdd ftdi_eeprom_free() to free allocated memory in eeprom
Wilfried Holzke [Mon, 14 Jun 2010 07:20:14 +0000]
Add ftdi_eeprom_free() to free allocated memory in eeprom

13 years agoEnhance FTDI driver message once more
Thomas Jarosch [Thu, 10 Jun 2010 15:52:36 +0000]
Enhance FTDI driver message once more

13 years agoMore generic error message for the FTDI kernel driver
Thomas Jarosch [Wed, 9 Jun 2010 16:32:13 +0000]
More generic error message for the FTDI kernel driver

13 years agoHonor CPPFLAGS in python wrapper to improve build process on Mac OS X
Alexander Lehmann [Tue, 25 May 2010 12:22:03 +0000]
Honor CPPFLAGS in python wrapper to improve build process on Mac OS X

13 years agoCMAKE: Fix package creation on 32-bit machines
Uwe Bonnes [Sun, 2 May 2010 15:46:45 +0000]
CMAKE: Fix package creation on 32-bit machines

Appended patch fixes a typo that caused the creation of _64.[deb|rpm]
also for 32-bit builds.

14 years agoFix swig argument constraints. Thanks to Craig Hollabaugh for the hint.
Thomas Jarosch [Fri, 16 Apr 2010 21:16:06 +0000]
Fix swig argument constraints. Thanks to Craig Hollabaugh for the hint.

14 years agoFix ftdi_set_interface: It get's called before ftdi_usb_open().
Thomas Jarosch [Mon, 29 Mar 2010 10:18:10 +0000]
Fix ftdi_set_interface: It get's called before ftdi_usb_open().

Thanks to Marcus Krellig for pointing it out.

14 years agoProtect against segfault if device is closed or ftdi context is invalid
Thomas Jarosch [Fri, 19 Feb 2010 22:14:04 +0000]
Protect against segfault if device is closed or ftdi context is invalid

This will help mulithreaded applications which do proper
locking around the ftdi_xxx() functions and one thread
already closed the USB device -> Zonk!

Thanks to Thomas Klose for reporting the issue.

14 years agobuilding parts of libftdi via cmake is now optional.
Gerd von Egidy [Mon, 18 Jan 2010 14:17:09 +0000]
building parts of libftdi via cmake is now optional.

the options are:
DOCUMENTATION
PYTHON_BINDINGS
FTDIPP
EXAMPLES

by default all parts will be built.

14 years agoAX_BOOST_BASE: fix host boost search when cross-compiling
Mike Frysinger [Tue, 29 Dec 2009 08:48:59 +0000]
AX_BOOST_BASE: fix host boost search when cross-compiling

The AX_BOOST_BASE macro likes to do searches in the host paths (/usr and
such) which is obviously incorrect for cross-compiling.  So disable these
fallback searches when cross-compiling.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

14 years agoavoid PATH_MAX/string copies usage
Mike Frysinger [Tue, 29 Dec 2009 08:37:15 +0000]
avoid PATH_MAX/string copies usage

The new ftdi_usb_open_string() func breaks mingw builds where PATH_MAX is
not defined.  Rather than adding fallback code, compare the path strings
piece by piece to avoid the string copy overhead in the process.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

14 years agopython: fix typo in top_builddir
Mike Frysinger [Tue, 29 Dec 2009 07:44:36 +0000]
python: fix typo in top_builddir

Missing a "d" in the var name.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

14 years agoDocument libftdi release process
Thomas Jarosch [Mon, 21 Dec 2009 09:11:08 +0000]
Document libftdi release process

14 years agoCorrect version in README file
Thomas Jarosch [Mon, 21 Dec 2009 08:46:21 +0000]
Correct version in README file

14 years agoignore more generated files
Mike Frysinger [Sun, 20 Dec 2009 14:10:00 +0000]
ignore more generated files

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

14 years agouse AC_CONFIG_FILES to avoid outputting files over and over
Mike Frysinger [Sun, 20 Dec 2009 14:09:59 +0000]
use AC_CONFIG_FILES to avoid outputting files over and over

The current configure ends up generating a lot of common files multiple
times because it calls AC_OUTPUT multiplte times.  The right way to do
this is call AC_CONFIG_FILES multiple times and AC_OUTPUT once.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

14 years agoIncrease version v0.17
Thomas Jarosch [Sat, 19 Dec 2009 15:15:44 +0000]
Increase version

14 years agoUpdated ChangeLog before release
Thomas Jarosch [Sat, 19 Dec 2009 15:07:01 +0000]
Updated ChangeLog before release

14 years agoDon't lint async mode anymore as libusb-compat results in #error
Thomas Jarosch [Sat, 19 Dec 2009 14:52:20 +0000]
Don't lint async mode anymore as libusb-compat results in #error

14 years agosmall improvements in C++ wrapper:
Gerd v. Egidy [Sun, 13 Dec 2009 16:53:29 +0000]
small improvements in C++ wrapper:

- make ftdi_usb_open_string() available
- reduce code dupliation in open() functions
- overloaded set_bitmask using the correct enum ftdi_mpsse_mode

14 years agodeprecated bitbang_enable in C++ wrapper too
Gerd v. Egidy [Sun, 13 Dec 2009 01:26:39 +0000]
deprecated bitbang_enable in C++ wrapper too

14 years agodon't use deprecated functions in examples anymore
Gerd v. Egidy [Sun, 13 Dec 2009 01:17:19 +0000]
don't use deprecated functions in examples anymore

14 years agodeprecate ftdi_enable_bitbang()
Gerd v. Egidy [Sun, 13 Dec 2009 01:10:07 +0000]
deprecate ftdi_enable_bitbang()
- it's superseded for a long time by ftdi_set_bitmode()
- it reads the mode to set from ftdi->bitbang_mode which is an unexpected interface and can lead to wrong results

14 years agodocumentation improvements, small fix setting bitbang_enabled on all bitbang modes
Gerd v. Egidy [Sun, 13 Dec 2009 01:02:09 +0000]
documentation improvements, small fix setting bitbang_enabled on all bitbang modes

14 years agouse ftdi_usb_open_string() in baud_test example
Gerd v. Egidy [Sat, 12 Dec 2009 23:49:22 +0000]
use ftdi_usb_open_string() in baud_test example

14 years agofix description strings without serial
Gerd v. Egidy [Sat, 12 Dec 2009 23:48:49 +0000]
fix description strings without serial

14 years agoadd new open functions: ftdi_usb_open_desc_index() and ftdi_usb_open_string()
Gerd v. Egidy [Sat, 12 Dec 2009 23:29:10 +0000]
add new open functions: ftdi_usb_open_desc_index() and ftdi_usb_open_string()

14 years agoDon't install baud_test program
Thomas Jarosch [Wed, 9 Dec 2009 08:42:56 +0000]
Don't install baud_test program

14 years agofix sync bitbang read-timing
Gerd v. Egidy [Sun, 6 Dec 2009 20:03:03 +0000]
fix sync bitbang read-timing

14 years agoread only what has really been written (seems not to make a difference though)
Gerd v. Egidy [Sun, 6 Dec 2009 19:13:02 +0000]
read only what has really been written (seems not to make a difference though)
write out real baudrate too

14 years agomake the write chunksize (and read chunksize for syncbb) configurable
Gerd v. Egidy [Sun, 6 Dec 2009 16:42:23 +0000]
make the write chunksize (and read chunksize for syncbb) configurable

14 years agoincrease resolution of time factor output
Gerd v. Egidy [Sun, 6 Dec 2009 13:39:57 +0000]
increase resolution of time factor output

14 years agofix documentation typo
Gerd v. Egidy [Sun, 6 Dec 2009 13:39:30 +0000]
fix documentation typo

14 years agoadd baud_test example program: compare expected and actual transfer speeds for differ...
Gerd v. Egidy [Sun, 6 Dec 2009 13:16:00 +0000]
add baud_test example program: compare expected and actual transfer speeds for differen baudrates

14 years agoUpdated ChangeLog
Thomas Jarosch [Fri, 4 Dec 2009 09:12:15 +0000]
Updated ChangeLog

14 years agoRenamed examples/sio to examples/serial_read
Thomas Jarosch [Fri, 4 Dec 2009 08:57:03 +0000]
Renamed examples/sio to examples/serial_read

14 years agoexamples: add sio example
Jim Paris [Wed, 2 Dec 2009 23:13:44 +0000]
examples: add sio example

Simple example to just receive and print data.

14 years agoDetermine maximum packet size via usb config descriptor
Thomas Jarosch [Sun, 15 Nov 2009 11:45:03 +0000]
Determine maximum packet size via usb config descriptor

14 years agoAdd bitmode for synchronous fifo if FT2232H
Uwe Bonnes [Fri, 20 Nov 2009 20:08:33 +0000]
Add bitmode for synchronous fifo if FT2232H

Arg,

getting a one-line right didn't work out. Please disregards the first patch
and use appended patch instead

Changelog:
Appended small patch adds the bitmode (0x40) for synchronous fifo mode of
the FT2232H

--
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From a470bfbdae1e78cc585bfe69b27ded88f4ba7349 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Date: Fri, 20 Nov 2009 17:31:26 +0100
Subject: Add bitmode value for synchronous fifo if FT2232H

14 years agoAdded new read/write_eeprom_location to C++ wrapper
Thomas Jarosch [Thu, 5 Nov 2009 08:46:19 +0000]
Added new read/write_eeprom_location to C++ wrapper

14 years agoUpdated AUTHORS and ChangeLog
Thomas Jarosch [Tue, 3 Nov 2009 16:56:58 +0000]
Updated AUTHORS and ChangeLog

14 years agoFix usb_set_configuration() call on Windows 64.
Thomas Jarosch [Tue, 3 Nov 2009 16:54:47 +0000]
Fix usb_set_configuration() call on Windows 64.

Based upon idea/findings by "NIL".

14 years agoFix usb index in ftdi_convert_baudrate() for FT2232H/FT4232H chips
Thimo Eichstaedt [Tue, 3 Nov 2009 16:43:43 +0000]
Fix usb index in ftdi_convert_baudrate() for FT2232H/FT4232H chips

14 years agoSet initial baudrate on correct interface instead of always the first one (Thimo...
Thimo Eichstaedt [Tue, 3 Nov 2009 16:39:21 +0000]
Set initial baudrate on correct interface instead of always the first one (Thimo Eichstaedt)

From libftdi mailinglist mail:
1) in ftdi_usb_open_dev() the baudrate is set to 9600, but that is done
too early (before the interface is set). So the baudrate of the first
interface is always modified, even if you opened a different one.

14 years agoCall usb_set_configuration() on Windows only
Uwe Bonnes [Thu, 23 Jul 2009 14:25:27 +0000]
Call usb_set_configuration() on Windows only

Hello,

working with interface 0 of the FT2232(H) on Linux, I get zillions of
kernel-log messages like:

kernel: usb 6-3: usbfs: interface 1 claimed by ftdi_sio while 'a.out' sets config #1

I understand as follows:
ftdi_usb_open_dev()
first detaches the driver for interface 0
Now  usb_set_configuration() is called, but interface 1 is still attached to
the kernel driver. This results in above kernel log.

Do we really need to set the configuaration? Does any device have a
alternative configuration at all?

I propose appended patch, tested on Linux with and without ftdi_sio.ko
loaded. No other change seen, beside no more kernel log messages like above.

Bye

--
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From fcb2609f0dae14c5616c34242177959cf226a5f2 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@hertz.ikp.physik.tu-darmstadt.de>
Date: Thu, 23 Jul 2009 16:21:08 +0200
Subject: usb_set_configuration() not needed on Linux

14 years agoAdd Toolchain-Crossbuild32.cmake for "make dist"
Thomas Jarosch [Tue, 3 Nov 2009 16:20:27 +0000]
Add Toolchain-Crossbuild32.cmake for "make dist"

14 years agoAllow to crossbuild 32-bit library on 64-bit machine
Uwe Bonnes [Tue, 29 Sep 2009 16:57:18 +0000]
Allow to crossbuild 32-bit library on 64-bit machine

14 years agoFor Unix 64-bit builds, use LIB_SUFFIX to install to lib64
Uwe Bonnes [Tue, 29 Sep 2009 16:56:03 +0000]
For Unix 64-bit builds, use LIB_SUFFIX to install to lib64

14 years agodon't build --with-async-mode w/ libusb-compat-0.1
Clifford Wolf [Thu, 8 Oct 2009 13:32:41 +0000]
don't build --with-async-mode w/ libusb-compat-0.1

Hello,

attached is a little patch that prohibits libftdi from compiling against
libusb-compat-0.1 (the wrapper that provides a libusb-0.1 compatible api
for systems with libusb-1.0) when libftdi is configured with async mode.

unfortunately fixing async mode for libusb-1.0+libusb-compat-0.1 is not
trivial because libusb-1.0 comes with an os abstraction layer that hides
the unix filedescriptor much deeper in internal structures. but failing to
build is imo much better than segfaulting at runtime.

yours,
 - clifford

PS: The USB_CLASS_PTP define is not present in any libusb-0.1 release
and has been added to libusb-compat-0.1 only afaics.

14 years agoFunctions for read/write of a single eeprom location
Oleg Seiljus [Tue, 3 Nov 2009 16:05:01 +0000]
Functions for read/write of a single eeprom location

14 years agoUpdated ChangeLog and AUTHORS
Thomas Jarosch [Mon, 27 Jul 2009 20:31:55 +0000]
Updated ChangeLog and AUTHORS

14 years agoRenamed new usb_close_intl() to ftdi_usb_close_internal(). Made function static and...
Thomas Jarosch [Mon, 27 Jul 2009 20:25:03 +0000]
Renamed new usb_close_intl() to ftdi_usb_close_internal(). Made function static and added doxygen documentation

14 years agoFix for double-free and segfault after close
Nathan Fraser [Mon, 27 Jul 2009 11:19:11 +0000]
Fix for double-free and segfault after close

In some circumstances it is possible to send an invalid usb_dev
pointer through to libusb after some errors or after an explicit
close request. Result will be segfault or subtle corruption.
This patch replaces all calls to usb_close with an internal wrapper
that sets the usb handle to NULL after the usb_close, and refuses
to call close on a NULL handle. Comments and/or discussion very welcome!

14 years agoFix out of tree building
Aurelien Jarno [Fri, 22 May 2009 23:46:58 +0000]
Fix out of tree building

14 years agolibftdi: Fix doxygen errors
Jim Paris [Fri, 22 May 2009 19:26:39 +0000]
libftdi: Fix doxygen errors

Signed-off-by: Jim Paris <jim@jtan.com>

14 years agolibftdi: Fix git build problems by using autoreconf
Jim Paris [Fri, 22 May 2009 18:48:21 +0000]
libftdi: Fix git build problems by using autoreconf

For recent versions of automake, the autotools steps in Makefile.cvs
don't work:
  $ make -f Makefile.cvs
  aclocal
  autoheader
  automake
  configure.in: required file `./install-sh' not found
  configure.in: required file `./mkinstalldirs' not found
  configure.in: required file `./missing' not found
  configure.in:7: required file `./config.guess' not found
  configure.in:7: required file `./config.sub' not found
  configure.in:7: required file `./ltmain.sh' not found
  examples/Makefile.am: required file `./depcomp' not found
  make: *** [all] Error 1

This is because automake no longer calls libtoolize, as described in:
  http://www.gnu.org/software/automake/manual/html_node/Error-required-file-ltmain_002esh-not-found.html
The recommended workaround there is to use autoreconf rather than
calling individual autotools programs.

This patch also removes the use of all_includes and all_libraries, as
they are undefined and cause automake errors.

Signed-off-by: Jim Paris <jim@jtan.com>

14 years agoFix compile warning on some gcc versions:
Thomas Jarosch [Sat, 9 May 2009 06:24:11 +0000]
Fix compile warning on some gcc versions:

/usr/local/libftdi-0.16/include/ftdi.h:270: warning: function
declaration isn't a prototype

Thanks to Arnim Läuger for the report.

14 years agoFinal v0.16 release date v0.16
Thomas Jarosch [Fri, 8 May 2009 15:30:15 +0000]
Final v0.16 release date

14 years agoUpdate README file with latest changes v0.16rc3
Thomas Jarosch [Wed, 6 May 2009 15:42:24 +0000]
Update README file with latest changes

14 years agoAllow C/D interfaces to be used on the 4232H, initialize the default interface for...
Alex Harford [Wed, 6 May 2009 15:40:29 +0000]
Allow C/D interfaces to be used on the 4232H, initialize the default interface for 2232H/4232H

14 years agoUpdate changelog v0.16rc2
Thomas Jarosch [Mon, 4 May 2009 19:09:42 +0000]
Update changelog

14 years agoFix result test of example application
Thomas Jarosch [Mon, 4 May 2009 18:51:55 +0000]
Fix result test of example application

14 years agoFixed Context::open as get_strings() closes the device before. Thanks to Chris M...
Marek Vavrusa [Mon, 4 May 2009 09:54:52 +0000]
Fixed Context::open as get_strings() closes the device before. Thanks to Chris M. Leahy for pointing this out. Tested on our good old example (added open test).

Intra2net: Reverted return code behavior of Context::open() calls

14 years agoAdded some more functions to list API. Fixed return type of size() call and made...
Thomas Jarosch [Mon, 4 May 2009 15:11:28 +0000]
Added some more functions to list API. Fixed return type of size() call and made sure clear() really frees the internal memory of the list. Added doxygen documentation

14 years agoList having non-virtual destructor fixed (thanks to Thomas Jarosch) Proposed subset...
Marek Vavrusa [Mon, 4 May 2009 09:41:52 +0000]
List having non-virtual destructor fixed (thanks to Thomas Jarosch) Proposed subset of list API. Tested on examples.

15 years agoIncrease version and update changelog v0.16rc1
Thomas Jarosch [Mon, 27 Apr 2009 20:07:21 +0000]
Increase version and update changelog

15 years agoDistribute all new files
Thomas Jarosch [Mon, 27 Apr 2009 20:07:03 +0000]
Distribute all new files

15 years agoInclude CMakeLists.txt in distribution
Thomas Jarosch [Mon, 27 Apr 2009 19:59:02 +0000]
Include CMakeLists.txt in distribution

15 years agocmake: Install python binding
Thomas Jarosch [Mon, 27 Apr 2009 19:54:49 +0000]
cmake: Install python binding