fixed ftdi_cbus_func and ftdi_cbush_func enumerations and introduced ftdi_cbusx_func
authorRobin Haberkorn <haberkorn@metratec.com>
Tue, 13 Jan 2015 23:03:38 +0000 (00:03 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 12 Feb 2015 21:28:48 +0000 (22:28 +0100)
commitadd00ad60e3d942f23233a0a25a39cebfced5c15
tree3f429487ef89dbbac81ee3abbdd627933e295038
parent19f1452cde9bfe9da0e2830af128fae958ae877a
fixed ftdi_cbus_func and ftdi_cbush_func enumerations and introduced ftdi_cbusx_func

* removed CBUS_BB. D2XX doesn't have it, so I don't think it's actually valid.

* CBUSH_TXLED/CBUSH_RXLED had the wrong values probably because the author
  looked at an outdated D2XX ftdi.h
  These values were also wrong in various mux tables of ftdi.c resulting
  e.g. in confusing outputs of the eeprom.c example.

* ftdi_cbush_func was extended to contain FT230X CBUS functions.
  However, the clock functions are different on FT-X and it is also
  confusing to use CBUSH constants on FT-X chips, so I introduced another
  enum ftdi_cbusx_func with CBUSX constants.

* Added support for setting CBUS functions on FT232H and FT230X in ftdi_eeprom.
  To support these chips, special cbushN and cbusxN options have been
  introduced.
  Possible values of the "cbus" options now match the ftdi.h constant names.
  Libconfuse string lists are no longer used as option types since they do not
  represent enumerations but lists.

* When "cbus" options are missing in ftdi_eeprom config files, keep the
  chip defaults as set by ftdi_eeprom_initdefaults().
ftdi_eeprom/example.conf
ftdi_eeprom/main.c
src/ftdi.c
src/ftdi.h