libftdi
10 years agoThe BM_type_chip option no longer exists
Uwe Bonnes [Thu, 8 Sep 2011 08:11:00 +0000]
The BM_type_chip option no longer exists

10 years agoexamples/serial_test.c: Use smaller buffers for lower baudrates to abort faster on ^C
Uwe Bonnes [Mon, 5 Sep 2011 12:25:41 +0000]
examples/serial_test.c: Use smaller buffers for lower baudrates to abort faster on ^C

10 years agoexamples/serial_test.c: Explicit set the line parameters
Uwe Bonnes [Mon, 5 Sep 2011 09:45:31 +0000]
examples/serial_test.c: Explicit set the line parameters

10 years agoexamples/serial_test.c: Use FTDI vendor ID as default
Uwe Bonnes [Mon, 5 Sep 2011 09:40:07 +0000]
examples/serial_test.c: Use FTDI vendor ID as default

10 years agoexamples/serial_test.c: Don't crash if no pattern on write is given
Uwe Bonnes [Mon, 5 Sep 2011 09:39:30 +0000]
examples/serial_test.c: Don't crash if no pattern on write is given

Exit immediate if invalid write pattern is given

10 years agoFix off-by-one buffer size error (detected by PC-lint)
Thomas Jarosch [Fri, 2 Sep 2011 12:22:40 +0000]
Fix off-by-one buffer size error (detected by PC-lint)

10 years agoUse default vendor/product strings for EEPROM when user doesn't supply some
Uwe Bonnes [Wed, 31 Aug 2011 17:16:52 +0000]
Use default vendor/product strings for EEPROM when user doesn't supply some

10 years agoEEPROM: treat USE_SERIAL as bool, not a flag
Uwe Bonnes [Wed, 31 Aug 2011 16:57:27 +0000]
EEPROM: treat USE_SERIAL as bool, not a flag

10 years agoftdi_eeprom: the chip type is given by the connected device, we may not change it
Uwe Bonnes [Wed, 31 Aug 2011 16:33:06 +0000]
ftdi_eeprom: the chip type is given by the connected device, we may not change it

10 years agoftdi_eeprom: Change sequenc of initialization to get the chip size right
Uwe Bonnes [Wed, 31 Aug 2011 16:31:20 +0000]
ftdi_eeprom: Change sequenc of initialization to get the chip size right

10 years agoftdi_eeprom: If we don't understand the argument, tell the user and abort
Uwe Bonnes [Wed, 31 Aug 2011 16:09:44 +0000]
ftdi_eeprom: If we don't understand the argument, tell the user and abort

10 years agoCosmetic changes to the unit test
Thomas Jarosch [Fri, 2 Sep 2011 11:15:04 +0000]
Cosmetic changes to the unit test

10 years agoAdd unit test for existing baudrate calculcation code
Thomas Jarosch [Fri, 2 Sep 2011 10:59:31 +0000]
Add unit test for existing baudrate calculcation code

Implement a table for every chip type
which stores the expected calculated result.

Highest speed currently tested is 921600

10 years agoAdd (optional) unit test infrastructure
Thomas Jarosch [Fri, 2 Sep 2011 09:40:41 +0000]
Add (optional) unit test infrastructure

Requires unit test framework from boost
so we can test the C and C++ code.

Also has automatic test registration
and the ability to run tests individually.

10 years agoFix include directories: Prefer local (probably newer) ftdi.h instead of the already...
Thomas Jarosch [Fri, 2 Sep 2011 09:36:20 +0000]
Fix include directories: Prefer local (probably newer) ftdi.h instead of the already installed one

10 years agoTry to inhibit programming EEPROM with data for a different device and zero EEPROM...
Uwe Bonnes [Sat, 2 Jul 2011 11:34:00 +0000]
Try to inhibit programming EEPROM with data for a different device and zero EEPROM memory image early

11 years agoNext try to get the encoding/decoding for the different FT2232/FT232H chip modes...
Uwe Bonnes [Wed, 20 Jul 2011 16:01:44 +0000]
Next try to get the encoding/decoding for the different FT2232/FT232H chip modes right

Using my EEPROM setting tool for some gadget here shown that I had the
chipmode en-/decoded wrong.

11 years agoSearch for any devices with one of the default VID/PID, if no VID/PID if given
Uwe Bonnes [Wed, 20 Jul 2011 09:12:52 +0000]
Search for any devices with one of the default VID/PID, if no VID/PID if given

11 years agoFix more occurences of serial_read -> serial_test
Thomas Jarosch [Wed, 27 Jul 2011 16:14:12 +0000]
Fix more occurences of serial_read -> serial_test

11 years agoRename serial_read to serial_test, as now write is also possible
Uwe Bonnes [Wed, 20 Jul 2011 09:12:49 +0000]
Rename serial_read to serial_test, as now write is also possible

11 years agoGive usage hints for handling empty EEPROM
Uwe Bonnes [Wed, 20 Jul 2011 09:12:44 +0000]
Give usage hints for handling empty EEPROM

11 years agoFT232H has even more config bytes and less user_area
Uwe Bonnes [Wed, 20 Jul 2011 09:12:42 +0000]
FT232H has even more config bytes and less user_area

11 years agoOnly try ftdi_usb_open_dev if devices found
Uwe Bonnes [Wed, 20 Jul 2011 09:12:39 +0000]
Only try ftdi_usb_open_dev if devices found

11 years agoBaud rate generation is the same as with FT2232H/FT232H
Uwe Bonnes [Wed, 20 Jul 2011 09:12:37 +0000]
Baud rate generation is the same as with FT2232H/FT232H

11 years agoMove opening the device before tampering with the values, move reading the device...
Uwe Bonnes [Wed, 20 Jul 2011 09:12:31 +0000]
Move opening the device before tampering with the values, move reading the device just after opening

11 years agoftdi_eeprom: Change handling the EEPROM size
Uwe Bonnes [Mon, 11 Jul 2011 13:04:39 +0000]
ftdi_eeprom: Change handling the EEPROM size

11 years agoftdi_eeprom: Use exported APIs only
Uwe Bonnes [Mon, 11 Jul 2011 13:03:43 +0000]
ftdi_eeprom: Use exported APIs only

11 years agoexamples/eeprom: With no VID/PID/desc/serial, print eeprom content
Uwe Bonnes [Mon, 11 Jul 2011 13:03:07 +0000]
examples/eeprom: With no VID/PID/desc/serial, print eeprom content

of all FTDI devices found with default VID/PID

11 years agoAdd ftdi_set_eeprom_buf() as proposed in ftdi_eeprom
Uwe Bonnes [Mon, 11 Jul 2011 13:02:23 +0000]
Add ftdi_set_eeprom_buf() as proposed in ftdi_eeprom

11 years agoAdd missing ftdi_get|set_eeprom_value entries
Uwe Bonnes [Mon, 11 Jul 2011 13:01:25 +0000]
Add missing ftdi_get|set_eeprom_value entries

11 years agoexamples/find-all: Use the new "find-all" option
Uwe Bonnes [Tue, 5 Jul 2011 16:03:48 +0000]
examples/find-all: Use the new "find-all" option

11 years agoftdi_usb_find_all: Only search for default devices if both VID AND PID are 0
Uwe Bonnes [Tue, 5 Jul 2011 16:03:26 +0000]
ftdi_usb_find_all: Only search for default devices if both VID AND PID are 0

11 years agoAllow to search for all FTDI standard VID/PID
Uwe Bonnes [Tue, 28 Jun 2011 15:04:43 +0000]
Allow to search for all FTDI standard VID/PID

Allow to search for all FTDI standard VID/PID by passing VID:PID 0:0
to ftdi_usb_find_all

11 years agoIncrement the refcount on devices we return from ftdi_usb_find_all()
Uwe Bonnes [Tue, 28 Jun 2011 14:08:20 +0000]
Increment the refcount on devices we return from ftdi_usb_find_all()

11 years agoDon't return before cleanup
Uwe Bonnes [Tue, 28 Jun 2011 13:12:14 +0000]
Don't return before cleanup

11 years ago1.0/src/ftdi_stream.c: Check for fitting device
Uwe Bonnes [Tue, 21 Jun 2011 14:14:48 +0000]
1.0/src/ftdi_stream.c: Check for fitting device

11 years ago1.0/examples/stream_test: Fix memory leakage pathes
Uwe Bonnes [Tue, 21 Jun 2011 14:14:01 +0000]
1.0/examples/stream_test: Fix memory leakage pathes

11 years agoOnly ftdi_init may call libusb_init, or we leak an USB Context
Uwe Bonnes [Tue, 21 Jun 2011 14:03:28 +0000]
Only ftdi_init may call libusb_init, or we leak an USB Context

11 years agoFix all leak in the examples shown with no device connected
Uwe Bonnes [Tue, 21 Jun 2011 13:15:39 +0000]
Fix all leak in the examples shown with no device connected

11 years agoFix calculation of the Mode Bitfield
Uwe Bonnes [Mon, 20 Jun 2011 13:07:59 +0000]
Fix calculation of the Mode Bitfield

11 years agoHardware mode definitions for EEPROM programming must follow new definition Some...
Uwe Bonnes [Fri, 17 Jun 2011 19:47:50 +0000]
Hardware mode definitions for EEPROM programming must follow new definition Some more FT232H related defines

11 years agoChange how the hardware mode is programmed to inhibit setting invalid bit combinations
Uwe Bonnes [Fri, 17 Jun 2011 19:23:55 +0000]
Change how the hardware mode is programmed to inhibit setting invalid bit combinations

11 years agoHandle the FT232H CBUS Bits, Keep Values list numbered
Uwe Bonnes [Fri, 17 Jun 2011 19:06:22 +0000]
Handle the FT232H CBUS Bits, Keep Values list numbered

11 years agoFT232h: Handle the FT1284 Mode bits
Uwe Bonnes [Fri, 17 Jun 2011 18:11:43 +0000]
FT232h: Handle the FT1284 Mode bits

11 years agoFT232H: Handle the EEPROM Bit for Enter Powerdsave on ACBUS7
Uwe Bonnes [Fri, 17 Jun 2011 17:49:25 +0000]
FT232H: Handle the EEPROM Bit for Enter Powerdsave on ACBUS7

11 years agoAdd FT232H drive/strength/slew/schmitt trigger
Uwe Bonnes [Fri, 17 Jun 2011 17:34:05 +0000]
Add FT232H drive/strength/slew/schmitt trigger

11 years agoAdd FT1284 driver mode and new VCP bit position
Uwe Bonnes [Fri, 17 Jun 2011 17:22:16 +0000]
Add FT1284 driver mode and new VCP bit position

11 years agoBeginning of FT232H support. Many EEPROM values still need to be deciphered!
Uwe Bonnes [Fri, 17 Jun 2011 15:47:21 +0000]
Beginning of FT232H support. Many EEPROM values still need to be deciphered!

11 years agoFree the device list in ftdi_usb_find_all
Uwe Bonnes [Tue, 21 Jun 2011 13:04:05 +0000]
Free the device list in ftdi_usb_find_all

This fixes the leak with examples/find_all

11 years agoClean up on error
Uwe Bonnes [Mon, 20 Jun 2011 14:17:10 +0000]
Clean up on error

11 years agoClean up in error pathes
Uwe Bonnes [Mon, 20 Jun 2011 14:03:53 +0000]
Clean up in error pathes

11 years agoAdd missing check for NULL product string
Uwe Bonnes [Mon, 20 Jun 2011 13:16:05 +0000]
Add missing check for NULL product string

11 years agoRemove other duplicate-code
Uwe Bonnes [Mon, 20 Jun 2011 13:14:45 +0000]
Remove other duplicate-code

11 years agoAbort if no EEPROM is found
Uwe Bonnes [Mon, 20 Jun 2011 12:51:49 +0000]
Abort if no EEPROM is found

11 years agoRemove some code duplication
Uwe Bonnes [Mon, 20 Jun 2011 12:50:16 +0000]
Remove some code duplication

11 years agoMove libusb_init() call to prevent crash
Thomas Jarosch [Tue, 21 Jun 2011 07:27:21 +0000]
Move libusb_init() call to prevent crash
on plain ftdi_init() / ftdi_deinit().

Also check ftdi->usb_ctx in ftdi_deinit().

Code based on patch by Uwe Bonnes.

11 years agoForward port flexible module unload behavior
Thomas Jarosch [Tue, 14 Jun 2011 13:30:33 +0000]
Forward port flexible module unload behavior

11 years agoFix small typo
Thomas Jarosch [Tue, 14 Jun 2011 12:23:22 +0000]
Fix small typo

11 years agolibftdi1: Fixe Fixme in CBUS decoding
Uwe Bonnes [Fri, 20 May 2011 16:07:37 +0000]
libftdi1: Fixe Fixme in CBUS decoding

>>>>> "Thomas" == Thomas Jarosch <thomas.jarosch@intra2net.com> writes:

    Thomas> Uwe, On Friday, 20. May 2011 12:43:42 Uwe Bonnes wrote:
    >> as I am still in the steep part of the learning curve with git, at
    >> some point in time I accidently merged my changes to streaming read
    >> and eeprom to one. That way, my tree diverged from either libftdi-1.0
    >> master and eeprom- new. As I need both features, maintainance is
    >> difficult.
    >>
    >> Two questions: Why is eeprom-new still not merged?

    Thomas> It is now.

Thanks

Appended patch hopefully fixes the FIXME aimed at me.

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

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From 92ec6ded6df5aa377e1f82c081891b321f22c1d0 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Date: Fri, 20 May 2011 18:03:21 +0200
Subject: Only the first 4 PINs have (fixed) CBUS functionality

11 years agoMerge branch 'eeprom-new'
Thomas Jarosch [Fri, 20 May 2011 14:10:11 +0000]
Merge branch 'eeprom-new'

Conflicts:
examples/stream_test.c

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

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

11 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

11 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

11 years agoFix ftdi_read_pins in python bindings
Chris Zeh [Mon, 2 May 2011 17:20:36 +0000]
Fix ftdi_read_pins in python bindings

11 years agoCall ftdi_usb_close_internal and not usb_close when descriptor doesn't match
Uwe Bonnes [Tue, 1 Feb 2011 10:27:09 +0000]
Call ftdi_usb_close_internal and not usb_close when descriptor doesn't match

11 years agoCheck ftdi pointer before accessing it
Uwe Bonnes [Tue, 1 Feb 2011 10:02:24 +0000]
Check ftdi pointer before accessing it

11 years agoCall ftdi_usb_close_internal and not usb_close when descriptor doesn't match
Uwe Bonnes [Tue, 1 Feb 2011 10:27:09 +0000]
Call ftdi_usb_close_internal and not usb_close when descriptor doesn't match

11 years agoCheck ftdi pointer before accessing it
Uwe Bonnes [Tue, 1 Feb 2011 10:02:24 +0000]
Check ftdi pointer before accessing it

11 years agoSafer initialisation of ftdi_readstream
Uwe Bonnes [Thu, 20 Jan 2011 15:51:21 +0000]
Safer initialisation of ftdi_readstream

Applies to both branches

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

11 years agoDelete some remaining debug printout
Uwe Bonnes [Thu, 20 Jan 2011 15:22:37 +0000]
Delete some remaining debug printout

Applied to all trees
--
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From 6ba0d30b53677d27f9559057697c75c962cab117 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Date: Thu, 20 Jan 2011 16:20:03 +0100
Subject: Delete some remaining debug printout

11 years agoSafer initialisation of ftdi_readstream
Uwe Bonnes [Thu, 20 Jan 2011 15:51:21 +0000]
Safer initialisation of ftdi_readstream

Applies to both branches

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

11 years agoDelete some remaining debug printout
Uwe Bonnes [Thu, 20 Jan 2011 15:22:37 +0000]
Delete some remaining debug printout

Applied to all trees
--
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From 6ba0d30b53677d27f9559057697c75c962cab117 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Date: Thu, 20 Jan 2011 16:20:03 +0100
Subject: Delete some remaining debug printout

11 years agoNot writing to file, in flash_raw mode
Vladimir Yakovlev [Wed, 19 Jan 2011 07:31:41 +0000]
Not writing to file, in flash_raw mode

Don't write eeprom file if flash_raw is set

11 years agoDefault USB PID differs for different devices. 0x6001 is valid only for FT245BM.
Vladimir Yakovlev [Wed, 19 Jan 2011 15:38:25 +0000]
Default USB PID differs for different devices. 0x6001 is valid only for FT245BM.
FT2232HQ uses 0x6010. Now you can define a default fallback PID.

In configuration file add this line:
        default_pid=0x6110

11 years agoImport example config file from ftdi_eeprom tree
Thomas Jarosch [Sat, 15 Jan 2011 17:53:12 +0000]
Import example config file from ftdi_eeprom tree

11 years agoFix raw eeprom buffer handling
Thomas Jarosch [Sat, 15 Jan 2011 17:51:38 +0000]
Fix raw eeprom buffer handling

11 years agoIntroduce size limit in ftdi_get_eeprom_buf()
Thomas Jarosch [Sat, 15 Jan 2011 17:32:47 +0000]
Introduce size limit in ftdi_get_eeprom_buf()

11 years agoUse eeprom_set_value()/eeprom_get_value() where possible
Thomas Jarosch [Sat, 15 Jan 2011 17:22:36 +0000]
Use eeprom_set_value()/eeprom_get_value() where possible

11 years agoFix typo in documentation
Thomas Jarosch [Sat, 15 Jan 2011 17:21:58 +0000]
Fix typo in documentation

11 years agoPrepare switch to opaque eeprom buffer
Thomas Jarosch [Sat, 15 Jan 2011 16:56:21 +0000]
Prepare switch to opaque eeprom buffer

11 years agoUpdate copyright information and add ftdi_eeprom TODO list
Thomas Jarosch [Sat, 15 Jan 2011 16:44:44 +0000]
Update copyright information and add ftdi_eeprom TODO list

11 years agoPC-lint settings: Add path to libusb 1.0 header file
Thomas Jarosch [Sat, 15 Jan 2011 16:14:00 +0000]
PC-lint settings: Add path to libusb 1.0 header file

11 years agoWe already declared var 'i', no need to redo it
Thomas Jarosch [Sat, 15 Jan 2011 16:08:34 +0000]
We already declared var 'i', no need to redo it

11 years agoFix memleak on ftdi_write_data_submit() error
Thomas Jarosch [Sat, 15 Jan 2011 16:06:55 +0000]
Fix memleak on ftdi_write_data_submit() error

11 years agoFix user area size calculation
Thomas Jarosch [Sat, 15 Jan 2011 15:57:26 +0000]
Fix user area size calculation

11 years agoFix doxygen documentation
Thomas Jarosch [Sat, 15 Jan 2011 15:42:01 +0000]
Fix doxygen documentation

11 years agoAddress one more compile warning / add FIXME comment for Uwe
Thomas Jarosch [Sat, 15 Jan 2011 15:38:26 +0000]
Address one more compile warning / add FIXME comment for Uwe

11 years agoFix uninitialized variable warning about user_area_size
Thomas Jarosch [Sat, 15 Jan 2011 15:22:32 +0000]
Fix uninitialized variable warning about user_area_size

11 years agoUpdate project file to kdevelop 4
Thomas Jarosch [Sat, 15 Jan 2011 15:14:24 +0000]
Update project file to kdevelop 4

11 years agoRemove duplicate init code
Thomas Jarosch [Sat, 15 Jan 2011 15:08:23 +0000]
Remove duplicate init code

Conflicts:

src/ftdi.c

11 years agoRemove duplicate init code
Thomas Jarosch [Sat, 15 Jan 2011 15:07:11 +0000]
Remove duplicate init code

11 years agoFix email address
Thomas Jarosch [Wed, 12 Jan 2011 12:20:29 +0000]
Fix email address

11 years agoFix mantainer in CMakeLists.txt
Uwe Bonnes [Tue, 11 Jan 2011 14:34:13 +0000]
Fix mantainer in CMakeLists.txt

Hello,

don't know how the other name slipped in. Perhaps
libftdi@developer.intra2net.com is also a better choice.

11 years agoProper initialisation of interface A.
Vladimir Yakovlev [Thu, 23 Dec 2010 13:05:42 +0000]
Proper initialisation of interface A.

Write correct ftdi->in_ep and others when initialising interface A.
Without it you can not switch back to interface A, after B.
In sequence A-B-A, B stuck forewer.

11 years agoUpdate AUTHORS file
Thomas Jarosch [Thu, 30 Dec 2010 09:13:30 +0000]
Update AUTHORS file

11 years agoProper initialisation of interface A.
Vladimir Yakovlev [Thu, 23 Dec 2010 13:05:42 +0000]
Proper initialisation of interface A.

Write correct ftdi->in_ep and others when initialising interface A.
Without it you can not switch back to interface A, after B.
In sequence A-B-A, B stuck forewer.

11 years agoftdi_eeprom compiles now. Still needs a lot of work
Thomas Jarosch [Sat, 23 Oct 2010 17:38:05 +0000]
ftdi_eeprom compiles now. Still needs a lot of work

11 years agoAdd ftdi_eeprom target (currently disabled). Get version info from CMakeLists.txt
Thomas Jarosch [Sat, 23 Oct 2010 17:26:12 +0000]
Add ftdi_eeprom target (currently disabled). Get version info from CMakeLists.txt

11 years agoImport latest, unchanged ftdi_eeprom source
Thomas Jarosch [Fri, 15 Oct 2010 09:06:05 +0000]
Import latest, unchanged ftdi_eeprom source

Code needs adaption to new eeprom API and we have to check
if it can be replaced/merged with Uwe's new eeprom tool.

-> Not activated in the build process (yet)