eeprom handling: Add support for arbitrary user data
authorSalvador Eduardo Tropea <salvador@inti.gob.ar>
Fri, 20 Nov 2015 22:26:03 +0000 (23:26 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 20 Nov 2015 22:26:03 +0000 (23:26 +0100)
commit6e962b9a0991bf28571c7a143a532d83237c05af
tree00461a49a15afa91cdca84157010d8a39ddf16bf
parentbc7a46d1c11abacb94dc68067314d1a6d86285bb
eeprom handling: Add support for arbitrary user data

Add two new configuration options:

- user_data_addr: An integer indicating the offset
                  where we want to put the user provided data.

- user_data_file: A string indicating the filename that
                  contains the binary data to be added.

I've extended the libftdi API to store the above mentioned data inside
the eeprom struct. Also extended ftdi_eeprom_build to include this data.
ftdi_eeprom/main.c
src/ftdi.c
src/ftdi.h
src/ftdi_i.h