Thomas Jarosch [Fri, 7 Oct 2011 13:59:54 +0000]
Interface can not be changed on an already open device
Based upon code from Uwe Bonnes, improved by me.
Uwe Bonnes [Tue, 4 Oct 2011 12:57:12 +0000]
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.
Thomas Jarosch [Fri, 30 Sep 2011 08:45:37 +0000]
Solved another TODO entry
Thomas Jarosch [Thu, 29 Sep 2011 20:46:43 +0000]
Add example code demonstrating how to use the python wrapper
Thomas Jarosch [Thu, 29 Sep 2011 20:09:34 +0000]
Remove old ftdi_enable_bitbang() function. It was marked as deprecated for two years
Thomas Jarosch [Thu, 29 Sep 2011 20:02:20 +0000]
SWIG wrapper: Mark ftdi_version_info.version_str and .snapshot_str read only
Fixes this warning:
Warning 451: Setting a const char * variable may leak memory.
Uwe Bonnes [Thu, 29 Sep 2011 16:28:25 +0000]
Use a private header for the private EEPROM structures
I added the ftdi_i.h header to bindings/ftdi.i. Noe the bindings compile
again. Other things are untouched.
Thomas Jarosch [Thu, 29 Sep 2011 17:38:06 +0000]
Upgrade doxygen file with 'doxygen -u'
Thomas Jarosch [Thu, 29 Sep 2011 17:33:37 +0000]
Quiet normal doxygen output so we only see the useful messages
Thomas Jarosch [Thu, 29 Sep 2011 09:13:41 +0000]
Some more steps done towards 1.0
Thomas Jarosch [Thu, 29 Sep 2011 09:09:35 +0000]
Merge remote-tracking branch 'origin/get-library-version'
Thomas Jarosch [Thu, 29 Sep 2011 09:06:52 +0000]
Merge branch 'autoconf-removal'
Thomas Jarosch [Mon, 26 Sep 2011 09:14:22 +0000]
Increase library version to 0.99
Thomas Jarosch [Mon, 26 Sep 2011 09:11:53 +0000]
Remove unused templates directory
It was autocreated by kdevelop back in the days.
Thomas Jarosch [Mon, 26 Sep 2011 09:06:00 +0000]
Update release process documentation
Thomas Jarosch [Mon, 26 Sep 2011 09:05:30 +0000]
Add 'make dist' target
Thomas Jarosch [Mon, 26 Sep 2011 09:00:12 +0000]
Remove autoconf support. Project switched to cmake
Thomas Jarosch [Sun, 25 Sep 2011 10:10:33 +0000]
Missing version header template file
Thomas Jarosch [Sun, 25 Sep 2011 10:08:55 +0000]
Added API to get libftdi library version.
Supports version number as integer, string
and possible git snapshot revision.
Based upon idea by Martin Zenzes.
Thomas Jarosch [Sun, 25 Sep 2011 08:28:14 +0000]
Silence gcc warnings about possible uninitialized variables
Thomas Jarosch [Fri, 9 Sep 2011 09:45:10 +0000]
Merge branch 'new-baudrate-code'
Thomas Jarosch [Fri, 9 Sep 2011 09:34:02 +0000]
Adjust unit test to match baudrate calculation for AM type chips
Uwe Bonnes [Thu, 8 Sep 2011 08:11:27 +0000]
ftdi_eeprom/main.c: Clean up the FTDI structure on exit
Valgrind still reports an error, but I suspect it is with (my version?)
of confuse.
Uwe Bonnes [Thu, 8 Sep 2011 08:11:14 +0000]
ftdi_eeprom/main.c: Malloc the eeprom Buffer with the size exported by the API
Uwe Bonnes [Thu, 8 Sep 2011 08:11:00 +0000]
The BM_type_chip option no longer exists
Thomas Jarosch [Thu, 8 Sep 2011 15:33:29 +0000]
Document what needs to be done for an official 1.0 release - based upon email from Xiaofan Chen
Thomas Jarosch [Wed, 7 Sep 2011 09:24:18 +0000]
Update PC-Lint settings file
Thomas Jarosch [Wed, 7 Sep 2011 09:21:13 +0000]
Fixture base class destructor should be virtual
Thomas Jarosch [Wed, 7 Sep 2011 08:56:01 +0000]
Cosmetic changes and add Uwe to authors
Uwe Bonnes [Tue, 6 Sep 2011 12:10:06 +0000]
test/baudrate.cpp: Add testcases for the rounding border cases
Uwe Bonnes [Tue, 6 Sep 2011 12:09:26 +0000]
Round the returned baudrate in ftdi_to_clkbits and adjust the changed values in test/baurate.cpp
Uwe Bonnes [Tue, 6 Sep 2011 12:08:52 +0000]
test/baudrate.cpp: Change the expected results to the present results. AM still has some errors in the cornercase.
Uwe Bonnes [Tue, 6 Sep 2011 12:08:13 +0000]
2232C is a BM type chips for baudrate calculations
Uwe Bonnes [Tue, 6 Sep 2011 12:07:35 +0000]
test/baudrate.cpp: Use orthogonal names for the test-targets
Uwe Bonnes [Tue, 6 Sep 2011 12:06:56 +0000]
Explain the index/value format baudrate setting
test/baudrate.cpp: Evaluate according to this explanation
Thomas Jarosch [Tue, 6 Sep 2011 10:24:09 +0000]
Unify baudrate unit test for chips behaving the same
Thomas Jarosch [Mon, 5 Sep 2011 16:46:06 +0000]
Update unit test to the new baudrate code
Uwe Bonnes [Tue, 12 Jul 2011 15:49:18 +0000]
Rewrite the baudrate calculation, tested for 232R and 232H
Thomas Jarosch [Mon, 5 Sep 2011 16:37:54 +0000]
Update baudrate unit test to show divisor/fractional bits/clock (suggested by Uwe)
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
Uwe Bonnes [Mon, 5 Sep 2011 09:45:31 +0000]
examples/serial_test.c: Explicit set the line parameters
Uwe Bonnes [Mon, 5 Sep 2011 09:40:07 +0000]
examples/serial_test.c: Use FTDI vendor ID as default
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
Thomas Jarosch [Fri, 2 Sep 2011 12:22:40 +0000]
Fix off-by-one buffer size error (detected by PC-lint)
Uwe Bonnes [Wed, 31 Aug 2011 17:16:52 +0000]
Use default vendor/product strings for EEPROM when user doesn't supply some
Uwe Bonnes [Wed, 31 Aug 2011 16:57:27 +0000]
EEPROM: treat USE_SERIAL as bool, not a flag
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
Uwe Bonnes [Wed, 31 Aug 2011 16:31:20 +0000]
ftdi_eeprom: Change sequenc of initialization to get the chip size right
Uwe Bonnes [Wed, 31 Aug 2011 16:09:44 +0000]
ftdi_eeprom: If we don't understand the argument, tell the user and abort
Thomas Jarosch [Fri, 2 Sep 2011 11:15:04 +0000]
Cosmetic changes to the unit test
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
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.
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
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
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.
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
Thomas Jarosch [Wed, 27 Jul 2011 16:14:12 +0000]
Fix more occurences of serial_read -> serial_test
Uwe Bonnes [Wed, 20 Jul 2011 09:12:49 +0000]
Rename serial_read to serial_test, as now write is also possible
Uwe Bonnes [Wed, 20 Jul 2011 09:12:44 +0000]
Give usage hints for handling empty EEPROM
Uwe Bonnes [Wed, 20 Jul 2011 09:12:42 +0000]
FT232H has even more config bytes and less user_area
Uwe Bonnes [Wed, 20 Jul 2011 09:12:39 +0000]
Only try ftdi_usb_open_dev if devices found
Uwe Bonnes [Wed, 20 Jul 2011 09:12:37 +0000]
Baud rate generation is the same as with FT2232H/FT232H
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
Uwe Bonnes [Mon, 11 Jul 2011 13:04:39 +0000]
ftdi_eeprom: Change handling the EEPROM size
Uwe Bonnes [Mon, 11 Jul 2011 13:03:43 +0000]
ftdi_eeprom: Use exported APIs only
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
Uwe Bonnes [Mon, 11 Jul 2011 13:02:23 +0000]
Add ftdi_set_eeprom_buf() as proposed in ftdi_eeprom
Uwe Bonnes [Mon, 11 Jul 2011 13:01:25 +0000]
Add missing ftdi_get|set_eeprom_value entries
Uwe Bonnes [Tue, 5 Jul 2011 16:03:48 +0000]
examples/find-all: Use the new "find-all" option
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
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
Uwe Bonnes [Tue, 28 Jun 2011 14:08:20 +0000]
Increment the refcount on devices we return from ftdi_usb_find_all()
Uwe Bonnes [Tue, 28 Jun 2011 13:12:14 +0000]
Don't return before cleanup
Uwe Bonnes [Tue, 21 Jun 2011 14:14:48 +0000]
1.0/src/ftdi_stream.c: Check for fitting device
Uwe Bonnes [Tue, 21 Jun 2011 14:14:01 +0000]
1.0/examples/stream_test: Fix memory leakage pathes
Uwe Bonnes [Tue, 21 Jun 2011 14:03:28 +0000]
Only ftdi_init may call libusb_init, or we leak an USB Context
Uwe Bonnes [Tue, 21 Jun 2011 13:15:39 +0000]
Fix all leak in the examples shown with no device connected
Uwe Bonnes [Mon, 20 Jun 2011 13:07:59 +0000]
Fix calculation of the Mode Bitfield
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
Uwe Bonnes [Fri, 17 Jun 2011 19:23:55 +0000]
Change how the hardware mode is programmed to inhibit setting invalid bit combinations
Uwe Bonnes [Fri, 17 Jun 2011 19:06:22 +0000]
Handle the FT232H CBUS Bits, Keep Values list numbered
Uwe Bonnes [Fri, 17 Jun 2011 18:11:43 +0000]
FT232h: Handle the FT1284 Mode bits
Uwe Bonnes [Fri, 17 Jun 2011 17:49:25 +0000]
FT232H: Handle the EEPROM Bit for Enter Powerdsave on ACBUS7
Uwe Bonnes [Fri, 17 Jun 2011 17:34:05 +0000]
Add FT232H drive/strength/slew/schmitt trigger
Uwe Bonnes [Fri, 17 Jun 2011 17:22:16 +0000]
Add FT1284 driver mode and new VCP bit position
Uwe Bonnes [Fri, 17 Jun 2011 15:47:21 +0000]
Beginning of FT232H support. Many EEPROM values still need to be deciphered!
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
Uwe Bonnes [Mon, 20 Jun 2011 14:17:10 +0000]
Clean up on error
Uwe Bonnes [Mon, 20 Jun 2011 14:03:53 +0000]
Clean up in error pathes
Uwe Bonnes [Mon, 20 Jun 2011 13:16:05 +0000]
Add missing check for NULL product string
Uwe Bonnes [Mon, 20 Jun 2011 13:14:45 +0000]
Remove other duplicate-code
Uwe Bonnes [Mon, 20 Jun 2011 12:51:49 +0000]
Abort if no EEPROM is found
Uwe Bonnes [Mon, 20 Jun 2011 12:50:16 +0000]
Remove some code duplication
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.
Thomas Jarosch [Tue, 14 Jun 2011 13:30:33 +0000]
Forward port flexible module unload behavior
Thomas Jarosch [Tue, 14 Jun 2011 12:23:22 +0000]
Fix small typo
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
Thomas Jarosch [Fri, 20 May 2011 14:10:11 +0000]
Merge branch 'eeprom-new'
Conflicts:
examples/stream_test.c
Thomas Jarosch [Fri, 6 May 2011 13:17:13 +0000]
Correct ftdi_poll_modem_status() result code
Thomas Jarosch [Fri, 6 May 2011 13:17:13 +0000]
Correct ftdi_poll_modem_status() result code