chromiumos/third_party/libftdi.git
21 months agoFix typo in release documentation master
Thomas Jarosch [Tue, 29 Jan 2013 13:42:53 +0000 (14:42 +0100)]
Fix typo in release documentation

21 months agoPrepare changelog for release latest_release v1.0
Thomas Jarosch [Tue, 29 Jan 2013 13:21:38 +0000 (14:21 +0100)]
Prepare changelog for release

21 months agoFix usleep unit conversion
Thomas Jarosch [Mon, 28 Jan 2013 13:46:25 +0000 (14:46 +0100)]
Fix usleep unit conversion

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

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

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

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

22 months agoAdd C++ wrapper config vars.
Michel Zou [Thu, 24 Jan 2013 10:59:21 +0000 (11:59 +0100)]
Add C++ wrapper config vars.

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

22 months agoAdapt rpm specfile to changed doxygen output path
Thomas Jarosch [Thu, 24 Jan 2013 08:30:04 +0000 (09:30 +0100)]
Adapt rpm specfile to changed doxygen output path

22 months agoInclude generated cmake config files in devel rpm package
Thomas Jarosch [Thu, 24 Jan 2013 08:28:24 +0000 (09:28 +0100)]
Include generated cmake config files in devel rpm package

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

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

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

22 months agoAdded cmake config file
Michel Zou [Mon, 21 Jan 2013 14:47:22 +0000 (15:47 +0100)]
Added cmake config file

22 months agoPrepare for 1.0rc2 v1.0rc2
Thomas Jarosch [Wed, 16 Jan 2013 11:09:34 +0000 (12:09 +0100)]
Prepare for 1.0rc2

22 months agoAdd verbose build instructions
Xiaofan Chen [Tue, 15 Jan 2013 17:02:40 +0000 (18:02 +0100)]
Add verbose build instructions

22 months agoFixed doxygen docstring generation.
Michel Zou [Tue, 15 Jan 2013 15:17:42 +0000 (16:17 +0100)]
Fixed doxygen docstring generation.

22 months agoFixed doxygen warnings.
Michel Zou [Tue, 15 Jan 2013 15:15:30 +0000 (16:15 +0100)]
Fixed doxygen warnings.

22 months agoFixed python3 bindings generation.
Michel Zou [Tue, 15 Jan 2013 15:13:42 +0000 (16:13 +0100)]
Fixed python3 bindings generation.

22 months agoFixed convert string function in python wrapper.
Michel Zou [Tue, 15 Jan 2013 15:12:56 +0000 (16:12 +0100)]
Fixed convert string function in python wrapper.

22 months agoDon't #include <libusb.h> from ftdi.h
Anders Larsen [Sun, 13 Jan 2013 15:02:00 +0000 (16:02 +0100)]
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>
22 months agofix mem leaks in examples ftdi_deinit -> ftdi_free
Matthias Janke [Sun, 13 Jan 2013 02:43:50 +0000 (03:43 +0100)]
fix mem leaks in examples ftdi_deinit -> ftdi_free

22 months agoUpdate README.mingw to reflect current Windows libusb situation
Xiaofan Chen [Fri, 11 Jan 2013 09:47:12 +0000 (10:47 +0100)]
Update README.mingw to reflect current Windows libusb situation

22 months agoMark release candidate status v1.0rc1
Thomas Jarosch [Fri, 28 Dec 2012 11:46:07 +0000 (12:46 +0100)]
Mark release candidate status

22 months agoQuick start guide how to build libftdi
Thomas Jarosch [Fri, 28 Dec 2012 11:42:51 +0000 (12:42 +0100)]
Quick start guide how to build libftdi

22 months agoUpdate ChangeLog
Thomas Jarosch [Fri, 28 Dec 2012 11:33:10 +0000 (12:33 +0100)]
Update ChangeLog

22 months agoUpdate AUTHORS
Thomas Jarosch [Fri, 28 Dec 2012 11:30:07 +0000 (12:30 +0100)]
Update AUTHORS

22 months agoUpdate README and TODO
Thomas Jarosch [Fri, 28 Dec 2012 11:24:13 +0000 (12:24 +0100)]
Update README and TODO

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

22 months agoGrab changelog from libftdi 0.20
Thomas Jarosch [Fri, 28 Dec 2012 11:02:52 +0000 (12:02 +0100)]
Grab changelog from libftdi 0.20

22 months agoFix rpm dependency
Thomas Jarosch [Fri, 28 Dec 2012 10:53:40 +0000 (11:53 +0100)]
Fix rpm dependency

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

23 months agoInstall ftdi_eeprom
Thomas Jarosch [Thu, 27 Dec 2012 16:35:28 +0000 (17:35 +0100)]
Install ftdi_eeprom

23 months agoFirst shot at fixing the .spec file
Thomas Jarosch [Thu, 27 Dec 2012 16:30:01 +0000 (17:30 +0100)]
First shot at fixing the .spec file

23 months agoC++ wrapper: Fix use-after-free issue in List::find_all()
Thomas Jarosch [Sun, 23 Dec 2012 16:53:25 +0000 (17:53 +0100)]
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.

2 years agoTweak doxy2swig.py output to include Returns header
Dan White [Thu, 1 Nov 2012 02:46:53 +0000 (21:46 -0500)]
Tweak doxy2swig.py output to include Returns header

Underlines are proportional to the title now also.

2 years agoExtract doxygen from ftdi.c to python docstrings
Dan White [Sat, 27 Oct 2012 05:12:37 +0000 (00:12 -0500)]
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.

2 years agoEnable separate doxygen XML output
Dan White [Sat, 27 Oct 2012 05:11:10 +0000 (00:11 -0500)]
Enable separate doxygen XML output

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

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

2 years agoUpdated python wrapper: Fixes for python3 + documentation
Michel Zou [Mon, 22 Oct 2012 09:56:35 +0000 (11:56 +0200)]
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.

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

2 years agoImprove cpack packaging
Michel Zou [Thu, 6 Sep 2012 07:22:10 +0000 (09:22 +0200)]
Improve cpack packaging

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

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

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

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

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

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

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

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

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

2 years agoPython stuff is solved now
Thomas Jarosch [Sat, 28 Jul 2012 16:08:33 +0000 (18:08 +0200)]
Python stuff is solved now

2 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 (15:26 +0200)]
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:

2 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 (15:26 +0200)]
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:

2 years agoRemove old async mode ignore lines
Thomas Jarosch [Mon, 16 Jul 2012 13:02:49 +0000 (15:02 +0200)]
Remove old async mode ignore lines

Reported by Michel Zou

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

2 years agoftdi_eeprom: reset the device after flashing the eeprom
Anders Larsen [Tue, 3 Jul 2012 21:24:07 +0000 (23:24 +0200)]
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>
2 years agoDocument the FT245R EEPROM weirdness
Anders Larsen [Tue, 3 Jul 2012 21:24:06 +0000 (23:24 +0200)]
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>
2 years agoftdi_eeprom: Added config value "eeprom_type"
Anders Larsen [Tue, 3 Jul 2012 21:24:05 +0000 (23:24 +0200)]
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>
2 years agoftdi_eeprom: reset the device after flashing the eeprom
Anders Larsen [Tue, 3 Jul 2012 21:24:07 +0000 (23:24 +0200)]
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>
2 years agoDocument the FT245R EEPROM weirdness
Anders Larsen [Tue, 3 Jul 2012 21:24:06 +0000 (23:24 +0200)]
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>
2 years agoftdi_eeprom: Added config value "eeprom_type"
Anders Larsen [Tue, 3 Jul 2012 21:24:05 +0000 (23:24 +0200)]
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>
2 years agoAnother TODO entry gone
Thomas Jarosch [Sun, 24 Jun 2012 10:41:45 +0000 (12:41 +0200)]
Another TODO entry gone

2 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 (12:41 +0200)]
cmake already places the header in /usr/include/libftdi1/ftdi.h, just needed to adapt the .spec file

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

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

2 years agoTry to adapt debian build rules
Thomas Jarosch [Sun, 24 Jun 2012 10:22:25 +0000 (12:22 +0200)]
Try to adapt debian build rules

2 years agoRename library from libftdi to libftdi1
Thomas Jarosch [Sun, 24 Jun 2012 10:14:55 +0000 (12:14 +0200)]
Rename library from libftdi to libftdi1

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

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

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

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

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

2 years agopkgconfig file: Depend on libusb-1.0
Thomas Jarosch [Thu, 21 Jun 2012 15:15:25 +0000 (17:15 +0200)]
pkgconfig file: Depend on libusb-1.0

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

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

2 years agoAdd Jared Boone to AUTHORS
Thomas Jarosch [Tue, 22 May 2012 13:44:50 +0000 (15:44 +0200)]
Add Jared Boone to AUTHORS

2 years agoPatch for building examples on MacOS X Lion
Jared Boone [Sat, 12 May 2012 21:09:40 +0000 (14:09 -0700)]
Patch for building examples on MacOS X Lion

I had trouble with CMake picking up my /opt/local/include directory before my libftdi/src directory. I was getting the MacPorts-installed libftdi-0.20 headers, not the headers from the build tree. This was only happening during building of examples/. This patch addressed my problem.

- Jared

2 years agoEEPROM max_power build/decode inconsistency
Daniel Kirkham [Sat, 12 May 2012 09:32:38 +0000 (19:32 +1000)]
EEPROM max_power build/decode inconsistency

Hello all,

As promised, below is a patchset to make eeprom->max_power consistently express power (current) requirements in milliamperes.

I've also updated my AUTHOR address.

Regards,

Daniel
--

From 9e854c8111dba11ea71166e22ca464b474156150 Mon Sep 17 00:00:00 2001
From: Daniel Kirkham <dk2@kirkham.id.au>
Date: Sat, 12 May 2012 19:23:57 +1000
Subject: [PATCH] Fix to make eeprom->max_power consistently express power (current) requirements in milliamperes.

Updated AUTHOR address

2 years agoAdd 'Anders Larsen' to AUTHORS
Thomas Jarosch [Fri, 13 Apr 2012 12:56:21 +0000 (14:56 +0200)]
Add 'Anders Larsen' to AUTHORS

2 years agoBump the library version number to 2.0.0
Anders Larsen [Mon, 9 Apr 2012 15:29:24 +0000 (17:29 +0200)]
Bump the library version number to 2.0.0

Allow libftdi-1.0 to co-exist with libftdi-0.x to ease migration.

Signed-off-by: Anders Larsen <al@alarsen.net>
2 years agoCompleted the support for the FT4232H chip
Anders Larsen [Mon, 9 Apr 2012 15:29:22 +0000 (17:29 +0200)]
Completed the support for the FT4232H chip

Added missing fields to the ftdi_eeprom structure and the encoding and
decoding functions.

The ftdi_eeprom utility forces DRIVER_VCP on and RS485 off for all channels,
but this could easily be made configurable, should the need arise.

Signed-off-by: Anders Larsen <al@alarsen.net>
2 years agoftdi_eeprom: Fix segmentation fault after --flash_eeprom
Anders Larsen [Mon, 9 Apr 2012 15:29:20 +0000 (17:29 +0200)]
ftdi_eeprom: Fix segmentation fault after --flash_eeprom

Allocate a buffer if it's not already available (hint: it was only allocated
by --read-eeprom)

Signed-off-by: Anders Larsen <al@alarsen.net>
2 years agoftdi_eeprom: remove redundant debug output
Anders Larsen [Mon, 9 Apr 2012 15:29:19 +0000 (17:29 +0200)]
ftdi_eeprom: remove redundant debug output

The (commented-out) debug output after ftdi_eeprom_decode() can be removed
as that function can generate it itself (and it contained obsolete fields
anyway).
Remove the unused config option "chip_type" in the process.

Signed-off-by: Anders Larsen <al@alarsen.net>
2 years agoFix _sleep warning on MinGW
Xiaofan Chen [Fri, 13 Apr 2012 09:50:36 +0000 (11:50 +0200)]
Fix _sleep warning on MinGW

2 years agoFix header, API change ftdi_write_data_async has been replaced by ftdi_write_data_submit
Youness Alaoui [Sun, 25 Mar 2012 22:21:12 +0000 (18:21 -0400)]
Fix header, API change ftdi_write_data_async has been replaced by ftdi_write_data_submit

2 years agoPython wrapper update
Michel Zou [Fri, 3 Feb 2012 15:36:04 +0000 (16:36 +0100)]
Python wrapper update

- Properly wrap ftdi_read_pins / ftdi_read_data
- Add example invocation of the read function to complete.py

2 years agoC++ wrapper: Reset internal USB device pointer on Context::close()
Thomas Jarosch [Mon, 16 Jan 2012 14:44:31 +0000 (15:44 +0100)]
C++ wrapper: Reset internal USB device pointer on Context::close()

2 years agoExample code: Fix compile warnings about unused variables
Thomas Jarosch [Mon, 16 Jan 2012 14:42:31 +0000 (15:42 +0100)]
Example code: Fix compile warnings about unused variables

2 years agocpp-wrapper: when using get-string-and-reopen method without having set up the usb...
Peter Schneider [Tue, 10 Jan 2012 10:09:11 +0000 (11:09 +0100)]
cpp-wrapper: when using get-string-and-reopen method without having set up the usb-device the currently opened usb-device is retreived from the usb-device-handle used in the ftdi context. this fixes the open methods of the cpp wrapper that do not get an usb-device by parameter.

2 years agoRemove duplicated udev rule.
Thomas Jarosch [Mon, 16 Jan 2012 14:24:35 +0000 (15:24 +0100)]
Remove duplicated udev rule.

Spotted by Rogier Wolff. Thanks.

2 years agoFix build on Mac OS X
Michel Zou [Mon, 9 Jan 2012 15:43:54 +0000 (16:43 +0100)]
Fix build on Mac OS X

2 years agoAdd missing malloc in ftdi_eeprom
Andreas Helmcke [Mon, 12 Dec 2011 14:54:00 +0000 (15:54 +0100)]
Add missing malloc in ftdi_eeprom

2 years agoFix boost include directory in unit test
Xiaofan Chen [Mon, 5 Dec 2011 11:44:53 +0000 (12:44 +0100)]
Fix boost include directory in unit test

2 years agoUpdate udev rule syntax for newer kernels
Thomas Jarosch [Tue, 29 Nov 2011 08:39:01 +0000 (09:39 +0100)]
Update udev rule syntax for newer kernels

Credit goes to Lucian Langa <cooly@gnome.eu.org>:

------------------------
SUBSYSTEM=="usb_device" syntax is old usb sysfs (usbfs)
support (kernel <2.6.22)

Correct syntax now should be:
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device"
------------------------

One clarification for the previous commit:

Additional udev rules credit goes to
Canyon Bliss <canyon.bliss+redhat@gmail.com>

3 years agoudev rules: Support all FTDI chip types
Lucian Langa [Mon, 28 Nov 2011 15:27:32 +0000 (16:27 +0100)]
udev rules: Support all FTDI chip types

3 years agoPython wrapper update
Michel Zou [Fri, 21 Oct 2011 12:21:52 +0000 (14:21 +0200)]
Python wrapper update

- wrapped ftdi_get_eeprom_buf
- use of ftdi_usb_find_all is easier
- useless usb_get_strings size args
- fixed possible memory leak from wrapping ftdi_new

3 years agoDrop 64bit lib suffix on debian systems
Michel Zou [Fri, 21 Oct 2011 12:17:49 +0000 (14:17 +0200)]
Drop 64bit lib suffix on debian systems

3 years agoEnhance python wrapper
Michel Zou [Mon, 17 Oct 2011 16:10:09 +0000 (18:10 +0200)]
Enhance python wrapper

- Updated functions prototypes in regard to the lib
- Made OUTPUT* typemaps active as they were misplaced regarding headers order
- Allowed use of ftdi_usb_get_strings
- Added an advanced example script (examples/python/complete.py)
- Stripped the 'ftdi_' suffix to avoid to write "ftdi.ftdi_usb_open(...)"; it becomes just "ftdi.usb_open(...)"
- Removed useless pointer functions since valid OUTPUT typemaps are there
- Some cleanup

3 years agoFix installaton of python wrapper
Michel Zou [Tue, 11 Oct 2011 08:44:26 +0000 (10:44 +0200)]
Fix installaton of python wrapper

--------------------------------------------
The python wrapper installation path is not correct:
-- Building python bindings via swig. Will be installed under /usr/site-packages

In fact it doesn't even rely on CMAKE_INSTALL_PREFIX because of this:
GET_FILENAME_COMPONENT(SITEPACKAGE ${PYTHON_LIB_INSTALL}/../site-packages ABSOLUTE)

I think it should more look like this: (here with CMAKE_INSTALL_PREFIX=/home/michel/Download/libftdi-git/build/install)
-- Installing: /home/michel/Download/libftdi-git/build/install/lib64/python2.7/site-packages/_ftdi.so
-- Installing: /home/michel/Download/libftdi-git/build/install/lib64/python2.7/site-packages/ftdi.py
--------------------------------------------

3 years agoIncrease ftdi_eeprom->cbus_function array again
Thomas Jarosch [Mon, 10 Oct 2011 06:19:05 +0000 (08:19 +0200)]
Increase ftdi_eeprom->cbus_function array again

3 years agoRemove errorneous ; after if
Thomas Jarosch [Sat, 8 Oct 2011 13:17:13 +0000 (15:17 +0200)]
Remove errorneous ; after if

Detected by my upcoming cppcheck check

3 years agoInterface can not be changed on an already open device
Thomas Jarosch [Fri, 7 Oct 2011 13:59:54 +0000 (15:59 +0200)]
Interface can not be changed on an already open device

Based upon code from Uwe Bonnes, improved by me.

3 years agoUse ftdi_new and not ftdi_init in the examples
Uwe Bonnes [Tue, 4 Oct 2011 12:57:12 +0000 (14:57 +0200)]
Use ftdi_new and not ftdi_init in the examples

At least our examples should use the library allocated buffer
and not a user allocated one.