libftdi Archives

Subject: [PATCH] Replace eeprom->rs232_inversion with eeprom->invert.

From: Florian Preinstorfer <fp@xxxxxxx>
To: <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 1 Oct 2014 12:35:18 +0200
Hi,
I tried to invert the RTS line on a FT231X FTDI chip using ftdi_eeprom
and it did not work out. As it turned out, the rs232_inversion options
are not recognized by ftdi_eeprom. As it seems, rs232_inversion and
invert should accomplish the same thing and even write to the same
location. Therefore, I replaced rs232_inversion with invert.

Patch summary:
 * The field eeprom->rs232_inversion reads and writes to the same
   location as eeprom->invert already does.
 * The configuration values invert_*, as read by ftdi_eeprom, are
   working ootb with FT230X chips. No configuration values were
   available for rs232_inversion.
 * Replace a duplicated code block, that prints inverted bits with
   print_inverted_bits().

I tested this commit with FT231X, which identifies itself as VID 0x0403
and PID 0x6015.

Please find the patch attached.

Best regards,
Florian

Attachment: 0001-Replace-eeprom-rs232_inversion-with-eeprom-invert.patch
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature

Current Thread