X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdi_eeprom%2Fmain.c;h=72c1fa7a877f426ca604e6d5d892035a7a768810;hp=7c6920b737fdcb2e38c0da305d0427bed5ecdb7d;hb=5b110dec90393f6951624fe9a9e58c9ae9e43127;hpb=6e962b9a0991bf28571c7a143a532d83237c05af diff --git a/ftdi_eeprom/main.c b/ftdi_eeprom/main.c index 7c6920b..72c1fa7 100644 --- a/ftdi_eeprom/main.c +++ b/ftdi_eeprom/main.c @@ -4,6 +4,7 @@ begin : Mon Apr 7 12:05:22 CEST 2003 copyright : (C) 2003-2014 by Intra2net AG and the libftdi developers email : opensource@intra2net.com + SPDX-License-Identifier: GPL-2.0-only ***************************************************************************/ /*************************************************************************** @@ -65,6 +66,27 @@ static int parse_cbus(cfg_t *cfg, cfg_opt_t *opt, const char *value, void *resul return -1; } +static int parse_group0_drive(cfg_t *cfg, cfg_opt_t *opt, const char *value, void *result) +{ + static const char* options[] = + { + "4MA", "8MA", "12MA", "16MA" + }; + + int i; + for (i=0; itype == TYPE_230X) { @@ -611,7 +636,15 @@ int main(int argc, char *argv[]) exit (-1); } + printf("Flashing raw eeprom from file %s (%d bytes)\n", + filename, my_eeprom_size); + ftdi_set_eeprom_buf(ftdi, eeprom_buf, my_eeprom_size); + } else + { + printf ("ERROR: flash_raw mode enabled, but no eeprom filename " + "given in config file.\n"); + exit (-1); } } printf ("FTDI write eeprom: %d\n", ftdi_write_eeprom(ftdi));