libftdi
10 years agoAdded mingw-w64 toolchain files
xantares [Wed, 14 Aug 2013 18:23:08 +0000]
Added mingw-w64 toolchain files

10 years agoFixed installation of static libraries with windows.
xantares [Wed, 14 Aug 2013 18:13:19 +0000]
Fixed installation of static libraries with windows.

10 years agoFixed libintl use.
xantares [Wed, 14 Aug 2013 18:00:55 +0000]
Fixed libintl use.

10 years agoImprove mingw cross-compiling instructions
Paul Fertser [Wed, 7 Aug 2013 14:47:01 +0000]
Improve mingw cross-compiling instructions

This should make them less hackish and the outlined way seems to be
what upstream is recommending.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

10 years agocmake: allow to use pkg-config for windows builds as well
Paul Fertser [Wed, 7 Aug 2013 10:35:47 +0000]
cmake: allow to use pkg-config for windows builds as well

If the user has an appropriate pkg-config wrapper,
e.g. i686-w64-mingw32-pkg-config (or building natively on mingw and
has pkg-config or pkg-config-lite installed), it can be used to locate
libusb-1.0 properly. For cross-compiling
-DPKG_CONFIG_EXECUTABLE=`which i686-w64-mingw32-pkg-config`
needs to be explicitly set.

It still doesn't prevent pkg-config-less operation, i.e. the user can
specify something like
-DLIBUSB_INCLUDE_DIR=~/i686-w64-mingw32-root/usr/include/libusb-1.0
and the build will succeed even when no pkg-config executable is
present.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

10 years agoFix mingw build issue caused by "interface" preprocessor definition
Paul Fertser [Wed, 7 Aug 2013 10:35:46 +0000]
Fix mingw build issue caused by "interface" preprocessor definition

Due to a weird odditie of windows, mingw has to redefine "interface" to
"struct" in its headers as described e.g. at
https://bugzilla.redhat.com/show_bug.cgi?id=980270

So if some software includes windows.h before ftdi.h, it'll lead to a
build failure. This snippet, borrowed from libusb, fixes it.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

10 years agoPython bindings: Fix warnings from pep8
Michel Zou [Fri, 19 Jul 2013 14:47:31 +0000]
Python bindings: Fix warnings from pep8

10 years agoWhitespace cleanup
Thomas Jarosch [Mon, 8 Jul 2013 07:21:15 +0000]
Whitespace cleanup

10 years agoswig wrapper: Remove dynamic python module soname
Michel Zou [Mon, 8 Jul 2013 07:20:31 +0000]
swig wrapper: Remove dynamic python module soname

10 years agoTake dist-specifc python path into account.
Julien Schueller [Mon, 3 Jun 2013 07:42:49 +0000]
Take dist-specifc python path into account.

10 years agoAdded detection of libintl.
Julien Schueller [Tue, 30 Apr 2013 08:51:22 +0000]
Added detection of libintl.

10 years agoAdd get/set for usb_read/write_timeout in C++ wrapper
Jochen Sprickerhof [Mon, 22 Apr 2013 10:11:01 +0000]
Add get/set for usb_read/write_timeout in C++ wrapper

10 years agoFix typo in error message
Thomas Jarosch [Fri, 26 Apr 2013 12:34:40 +0000]
Fix typo in error message

Inspired by patch from Matthias Brugger <matthias.bgg@gmail.com>

11 years agoUnify style of the main source code
Thomas Jarosch [Wed, 10 Apr 2013 08:42:43 +0000]
Unify style of the main source code

With all the contributions flowing in,
the code style varied here and there.

Also add the script I use to format the source code.

11 years agoAdded partial support for FT230X
Nathael Pajani [Wed, 10 Apr 2013 08:28:22 +0000]
Added partial support for FT230X

11 years agoAdded ftdi_eeprom_set_strings()
Nathael Pajani [Wed, 10 Apr 2013 08:19:17 +0000]
Added ftdi_eeprom_set_strings()

11 years agoRemove compiler warnings on signed comparison
Nathael Pajani [Wed, 10 Apr 2013 08:14:08 +0000]
Remove compiler warnings on signed comparison

11 years agoPrevent possible segfault
Nathael Pajani [Wed, 10 Apr 2013 08:10:13 +0000]
Prevent possible segfault

11 years agoFix compile error reported by Bryan Richmond
Thomas Jarosch [Wed, 10 Apr 2013 07:44:38 +0000]
Fix compile error reported by Bryan Richmond

11 years agoSave device release number. Allow writing of eeprom buffer, that was read from device.
Jarkko Sonninen [Sun, 24 Mar 2013 08:14:18 +0000]
Save device release number. Allow writing of eeprom buffer, that was read from device.

11 years agomake building of static libs optional
Mike Frysinger [Fri, 1 Mar 2013 08:13:32 +0000]
make building of static libs optional

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

11 years agoMoved python stuff to own directory
Michel Zou [Tue, 19 Feb 2013 09:59:42 +0000]
Moved python stuff to own directory
(was 'bindings' before)

11 years agoAdded confuse script and moved cmake files
Michel Zou [Tue, 19 Feb 2013 09:44:32 +0000]
Added confuse script and moved cmake files

11 years agoFix eeprom flags for eeprom build
Jarkko Sonninen [Thu, 14 Feb 2013 15:02:32 +0000]
Fix eeprom flags for eeprom build

Original mail on libftdi mailinglist:
-------------------------------------

   Hello,

the eeprom_decode function sets struct ftdi_eeprom flags like this:
   eeprom->self_powered = buf[0x08] & 0x40;
but the eeprom_build uses the flags this way:
   if (eeprom->self_powered == 1)
as the result the bits won't be set. I suggest the patch below.

   - Jarkko Sonninen

11 years agoFixed read_pins argout typemap being sensitive to encoding.
Michel Zou [Sat, 9 Feb 2013 16:49:03 +0000]
Fixed read_pins argout typemap being sensitive to encoding.

11 years agoAdded version attribute.
Michel Zou [Thu, 31 Jan 2013 20:23:43 +0000]
Added version attribute.

11 years agoAllow to override LIB_SUFFIX
Michel Zou [Wed, 30 Jan 2013 20:57:28 +0000]
Allow to override LIB_SUFFIX

11 years agoFixed deprecated cmake python variable.
Michel Zou [Wed, 30 Jan 2013 14:01:47 +0000]
Fixed deprecated cmake python variable.

11 years agoFix typo in release documentation
Thomas Jarosch [Tue, 29 Jan 2013 13:42:53 +0000]
Fix typo in release documentation

11 years agoPrepare changelog for release v1.0
Thomas Jarosch [Tue, 29 Jan 2013 13:21:38 +0000]
Prepare changelog for release

11 years agoFix usleep unit conversion
Thomas Jarosch [Mon, 28 Jan 2013 13:46:25 +0000]
Fix usleep unit conversion

11 years agoMinGW support: Change sleep() to usleep()
Xiaofan Chen [Mon, 28 Jan 2013 09:34:06 +0000]
MinGW support: Change sleep() to usleep()

Change sleep() to usleep() to make examples build
successful under Windows with MinGW.

11 years agoPrepare third release candidate v1.0rc3
Thomas Jarosch [Fri, 25 Jan 2013 10:39:35 +0000]
Prepare third release candidate

11 years agoAdapt to new cmake config files path
Thomas Jarosch [Fri, 25 Jan 2013 10:39:13 +0000]
Adapt to new cmake config files path

11 years agoAdd C++ wrapper config vars.
Michel Zou [Thu, 24 Jan 2013 10:59:21 +0000]
Add C++ wrapper config vars.

11 years agoRenamed LibFTDIConfig.cmake. Cosmetic changes to CMakeLists.
Michel Zou [Thu, 24 Jan 2013 10:41:08 +0000]
Renamed LibFTDIConfig.cmake. Cosmetic changes to CMakeLists.

11 years agoAdapt rpm specfile to changed doxygen output path
Thomas Jarosch [Thu, 24 Jan 2013 08:30:04 +0000]
Adapt rpm specfile to changed doxygen output path

11 years agoInclude generated cmake config files in devel rpm package
Thomas Jarosch [Thu, 24 Jan 2013 08:28:24 +0000]
Include generated cmake config files in devel rpm package

11 years agoFixed cmake script installation dir on rpm distro.
Michel Zou [Wed, 23 Jan 2013 10:30:10 +0000]
Fixed cmake script installation dir on rpm distro.

11 years agoChange default build type to optimized build with debug symbols (RelWithDebInfo)
Thomas Jarosch [Thu, 24 Jan 2013 08:17:20 +0000]
Change default build type to optimized build with debug symbols (RelWithDebInfo)

11 years agoFixed python wrapper being rebuilt every time.
Michel Zou [Mon, 21 Jan 2013 10:44:08 +0000]
Fixed python wrapper being rebuilt every time.

11 years agoAdded cmake config file
Michel Zou [Mon, 21 Jan 2013 14:47:22 +0000]
Added cmake config file

11 years agoPrepare for 1.0rc2 v1.0rc2
Thomas Jarosch [Wed, 16 Jan 2013 11:09:34 +0000]
Prepare for 1.0rc2

11 years agoAdd verbose build instructions
Xiaofan Chen [Tue, 15 Jan 2013 17:02:40 +0000]
Add verbose build instructions

11 years agoFixed doxygen docstring generation.
Michel Zou [Tue, 15 Jan 2013 15:17:42 +0000]
Fixed doxygen docstring generation.

11 years agoFixed doxygen warnings.
Michel Zou [Tue, 15 Jan 2013 15:15:30 +0000]
Fixed doxygen warnings.

11 years agoFixed python3 bindings generation.
Michel Zou [Tue, 15 Jan 2013 15:13:42 +0000]
Fixed python3 bindings generation.

11 years agoFixed convert string function in python wrapper.
Michel Zou [Tue, 15 Jan 2013 15:12:56 +0000]
Fixed convert string function in python wrapper.

11 years agoDon't #include <libusb.h> from ftdi.h
Anders Larsen [Sun, 13 Jan 2013 15:02:00 +0000]
Don't #include <libusb.h> from ftdi.h

Libusb is used internally but (normally) not needed by an application
directly, so don't include <libusb.h> from the exposed interface header.

Signed-off-by: Anders Larsen <al@alarsen.net>

11 years agofix mem leaks in examples ftdi_deinit -> ftdi_free
Matthias Janke [Sun, 13 Jan 2013 02:43:50 +0000]
fix mem leaks in examples ftdi_deinit -> ftdi_free

11 years agoUpdate README.mingw to reflect current Windows libusb situation
Xiaofan Chen [Fri, 11 Jan 2013 09:47:12 +0000]
Update README.mingw to reflect current Windows libusb situation

11 years agoMark release candidate status v1.0rc1
Thomas Jarosch [Fri, 28 Dec 2012 11:46:07 +0000]
Mark release candidate status

11 years agoQuick start guide how to build libftdi
Thomas Jarosch [Fri, 28 Dec 2012 11:42:51 +0000]
Quick start guide how to build libftdi

11 years agoUpdate ChangeLog
Thomas Jarosch [Fri, 28 Dec 2012 11:33:10 +0000]
Update ChangeLog

11 years agoUpdate AUTHORS
Thomas Jarosch [Fri, 28 Dec 2012 11:30:07 +0000]
Update AUTHORS

11 years agoUpdate README and TODO
Thomas Jarosch [Fri, 28 Dec 2012 11:24:13 +0000]
Update README and TODO

11 years agoIncrease copyright year (final release will be in 2013)
Thomas Jarosch [Fri, 28 Dec 2012 11:22:43 +0000]
Increase copyright year (final release will be in 2013)

11 years agoGrab changelog from libftdi 0.20
Thomas Jarosch [Fri, 28 Dec 2012 11:02:52 +0000]
Grab changelog from libftdi 0.20

11 years agoFix rpm dependency
Thomas Jarosch [Fri, 28 Dec 2012 10:53:40 +0000]
Fix rpm dependency

11 years agorpm .spec file: Package the python wrapper
Thomas Jarosch [Fri, 28 Dec 2012 10:49:30 +0000]
rpm .spec file: Package the python wrapper

11 years agoInstall ftdi_eeprom
Thomas Jarosch [Thu, 27 Dec 2012 16:35:28 +0000]
Install ftdi_eeprom

11 years agoFirst shot at fixing the .spec file
Thomas Jarosch [Thu, 27 Dec 2012 16:30:01 +0000]
First shot at fixing the .spec file

11 years agoC++ wrapper: Fix use-after-free issue in List::find_all()
Thomas Jarosch [Sun, 23 Dec 2012 16:53:25 +0000]
C++ wrapper: Fix use-after-free issue in List::find_all()

We can no longer call ftdi_deinit() inside find_all().
This will call libusb_exit() which invalidates all further
operations on device lists / usb devices pointers.

Instead we pass in the Ftdi::Context from the calling side.

11 years agoTweak doxy2swig.py output to include Returns header
Dan White [Thu, 1 Nov 2012 02:46:53 +0000]
Tweak doxy2swig.py output to include Returns header

Underlines are proportional to the title now also.

11 years agoExtract doxygen from ftdi.c to python docstrings
Dan White [Sat, 27 Oct 2012 05:12:37 +0000]
Extract doxygen from ftdi.c to python docstrings

Uses the doxy2swig.py script to process the doxygen-generated
doc/xml/ftdi_8c.xml file into a SWIG file ftdi1_doc.i.

This allows the documentation to show in a python docstring viewer from
something like ipython.

11 years agoEnable separate doxygen XML output
Dan White [Sat, 27 Oct 2012 05:11:10 +0000]
Enable separate doxygen XML output

The xml is to be post-processed for other purposes, e.g. generating python
docstrings via a script.

11 years agoFix build on FreeBSD (cmake file typo)
Uffe Jakobsen [Mon, 22 Oct 2012 10:03:22 +0000]
Fix build on FreeBSD (cmake file typo)

11 years agoUpdated python wrapper: Fixes for python3 + documentation
Michel Zou [Mon, 22 Oct 2012 09:56:35 +0000]
Updated python wrapper: Fixes for python3 + documentation

xantares 09 wrote:
- Fixed examples with python3
- Added docstring documentation

Note: the read_chipid function fails from python3.

11 years agoFix python lib linking on MacOS X
Michel Zou [Thu, 6 Sep 2012 07:26:04 +0000]
Fix python lib linking on MacOS X

11 years agoImprove cpack packaging
Michel Zou [Thu, 6 Sep 2012 07:22:10 +0000]
Improve cpack packaging

- Filter out "build" directory
- source package name is arch-dependent

11 years agoFix doxygen doc generation if C++ wrapper is not built
Michel Zou [Fri, 31 Aug 2012 15:25:01 +0000]
Fix doxygen doc generation if C++ wrapper is not built

11 years agopython bindings: python3 support
Michel Zou [Thu, 23 Aug 2012 09:14:59 +0000]
python bindings: python3 support

Whitespace fixes by Thomas Jarosch (detected by pylint and git)

11 years agoRemove ftdi_async_complete() left over from libftdi 0.x
Thomas Jarosch [Thu, 23 Aug 2012 09:10:57 +0000]
Remove ftdi_async_complete() left over from libftdi 0.x

11 years agoAvoid to link python libs on debian
Michel Zou [Tue, 21 Aug 2012 08:00:34 +0000]
Avoid to link python libs on debian

11 years agoFix wrong array access in set_ft232h_cbus()
Thomas Jarosch [Tue, 14 Aug 2012 15:10:30 +0000]
Fix wrong array access in set_ft232h_cbus()

Changed code by Martin Devera <martin.devera@wifcom.cz>,
patch and commit log by Thomas Jarosch.

11 years agoMerge branch 'renames-for-release'
Thomas Jarosch [Sat, 28 Jul 2012 16:15:12 +0000]
Merge branch 'renames-for-release'

11 years agoPython stuff is solved now
Thomas Jarosch [Sat, 28 Jul 2012 16:08:33 +0000]
Python stuff is solved now

11 years agofixed NULL-pointer dereference in the ftdi_error_return(code, str) macro that occures...
Peter Schneider [Wed, 25 Jul 2012 13:26:23 +0000]
fixed NULL-pointer dereference in the ftdi_error_return(code, str) macro that occures when it is called because of a ftdi == NULL check

Hi,

as we just performed a Cppcheck run upon our project including the libftdi sources it found a possible null-pointer dereference when calling the ftdi_error_return(code, str) macro after the ftdi==NULL check.

Fix for this bug:

11 years agofixed NULL-pointer dereference in the ftdi_error_return(code, str) macro that occures...
Peter Schneider [Wed, 25 Jul 2012 13:26:23 +0000]
fixed NULL-pointer dereference in the ftdi_error_return(code, str) macro that occures when it is called because of a ftdi == NULL check

Hi,

as we just performed a Cppcheck run upon our project including the libftdi sources it found a possible null-pointer dereference when calling the ftdi_error_return(code, str) macro after the ftdi==NULL check.

Fix for this bug:

11 years agoRemove old async mode ignore lines
Thomas Jarosch [Mon, 16 Jul 2012 13:02:49 +0000]
Remove old async mode ignore lines

Reported by Michel Zou

11 years agoRename python wrapper to ftdi1. Adapt examples with minimal code changes
Thomas Jarosch [Sat, 7 Jul 2012 13:00:14 +0000]
Rename python wrapper to ftdi1. Adapt examples with minimal code changes

11 years agoftdi_eeprom: reset the device after flashing the eeprom
Anders Larsen [Tue, 3 Jul 2012 21:24:07 +0000]
ftdi_eeprom: reset the device after flashing the eeprom

If we change e.g. the product-id the change will take effect immediately
without having to unplug/replug the device.

Signed-off-by: Anders Larsen <al@alarsen.net>

11 years agoDocument the FT245R EEPROM weirdness
Anders Larsen [Tue, 3 Jul 2012 21:24:06 +0000]
Document the FT245R EEPROM weirdness

The FT232R and the FT245R share the same USB id (0x0403, 0x6001) and are
only distinguished by bit 00.0 in the (internal) EEPROM.

ftdi_eeprom currently can't handle this and will turn an FT245R chip
into an FT232R; document the fact.

Signed-off-by: Anders Larsen <al@alarsen.net>

11 years agoftdi_eeprom: Added config value "eeprom_type"
Anders Larsen [Tue, 3 Jul 2012 21:24:05 +0000]
ftdi_eeprom: Added config value "eeprom_type"

The default eeprom size is 128 bytes - if we have a larger one, we need
a way to specify the fact.
Using ftdi_read_eeprom() / ftdi_eeprom_decode() to get the actual eeprom type
is not an option as ftdi_eeprom_decode() would overwrite the values set
by ftdi_eeprom_initdefaults()

Signed-off-by: Anders Larsen <al@alarsen.net>

11 years agoftdi_eeprom: reset the device after flashing the eeprom
Anders Larsen [Tue, 3 Jul 2012 21:24:07 +0000]
ftdi_eeprom: reset the device after flashing the eeprom

If we change e.g. the product-id the change will take effect immediately
without having to unplug/replug the device.

Signed-off-by: Anders Larsen <al@alarsen.net>

11 years agoDocument the FT245R EEPROM weirdness
Anders Larsen [Tue, 3 Jul 2012 21:24:06 +0000]
Document the FT245R EEPROM weirdness

The FT232R and the FT245R share the same USB id (0x0403, 0x6001) and are
only distinguished by bit 00.0 in the (internal) EEPROM.

ftdi_eeprom currently can't handle this and will turn an FT245R chip
into an FT232R; document the fact.

Signed-off-by: Anders Larsen <al@alarsen.net>

11 years agoftdi_eeprom: Added config value "eeprom_type"
Anders Larsen [Tue, 3 Jul 2012 21:24:05 +0000]
ftdi_eeprom: Added config value "eeprom_type"

The default eeprom size is 128 bytes - if we have a larger one, we need
a way to specify the fact.
Using ftdi_read_eeprom() / ftdi_eeprom_decode() to get the actual eeprom type
is not an option as ftdi_eeprom_decode() would overwrite the values set
by ftdi_eeprom_initdefaults()

Signed-off-by: Anders Larsen <al@alarsen.net>

11 years agoAnother TODO entry gone
Thomas Jarosch [Sun, 24 Jun 2012 10:41:45 +0000]
Another TODO entry gone

11 years agocmake already places the header in /usr/include/libftdi1/ftdi.h, just needed to adapt...
Thomas Jarosch [Sun, 24 Jun 2012 10:41:09 +0000]
cmake already places the header in /usr/include/libftdi1/ftdi.h, just needed to adapt the .spec file

11 years agoDon't rename python wrapper for now
Thomas Jarosch [Sun, 24 Jun 2012 10:31:56 +0000]
Don't rename python wrapper for now

Otherwise all python code would have
to adapt from "ftdi.xxx()" to "ftdi1.xxx()".

11 years agoTry to adapt debian build rules
Thomas Jarosch [Sun, 24 Jun 2012 10:22:25 +0000]
Try to adapt debian build rules

11 years agoRename library from libftdi to libftdi1
Thomas Jarosch [Sun, 24 Jun 2012 10:14:55 +0000]
Rename library from libftdi to libftdi1

11 years agoRename and adapt pkgconfig files for libftdi1
Thomas Jarosch [Sun, 24 Jun 2012 09:56:08 +0000]
Rename and adapt pkgconfig files for libftdi1

11 years agoWe decided to skip this API change for now
Thomas Jarosch [Sun, 24 Jun 2012 09:51:54 +0000]
We decided to skip this API change for now

11 years agoActually configure libftdi1.spec
Thomas Jarosch [Sun, 24 Jun 2012 09:51:21 +0000]
Actually configure libftdi1.spec

11 years agoRename libftdi.spec.in to libftdi1.spec.in. Adapt package requirements to libusb1
Thomas Jarosch [Sun, 24 Jun 2012 09:49:50 +0000]
Rename libftdi.spec.in to libftdi1.spec.in. Adapt package requirements to libusb1

11 years agoRename libftdi-config to libftdi1-config
Thomas Jarosch [Sun, 24 Jun 2012 09:46:49 +0000]
Rename libftdi-config to libftdi1-config

11 years agopkgconfig file: Depend on libusb-1.0
Thomas Jarosch [Thu, 21 Jun 2012 15:15:25 +0000]
pkgconfig file: Depend on libusb-1.0

11 years agoFix libftdi.pc file generation when building with -DDOCUMENTATION=OFF
Maciej Grela [Wed, 20 Jun 2012 21:08:50 +0000]
Fix libftdi.pc file generation when building with -DDOCUMENTATION=OFF

11 years agoAdd Xiaofan Chen to AUTHORS. This was long overdue
Thomas Jarosch [Tue, 22 May 2012 13:45:55 +0000]
Add Xiaofan Chen to AUTHORS. This was long overdue