X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdi_eeprom%2Fmain.c;fp=ftdi_eeprom%2Fmain.c;h=edcfad70d0a9d42c2fd88aa3fc3158165f83f428;hp=b27922338889f4a53793d4b203f7b5238780e041;hb=190fca12fae231e8015f64953e51205ea3996bdf;hpb=9a74ead21248e61eee24165a0a9dd059f9f67a4d diff --git a/ftdi_eeprom/main.c b/ftdi_eeprom/main.c index b279223..edcfad7 100644 --- a/ftdi_eeprom/main.c +++ b/ftdi_eeprom/main.c @@ -109,6 +109,35 @@ static int parse_cbusx(cfg_t *cfg, cfg_opt_t *opt, const char *value, void *resu return -1; } +static int parse_chtype(cfg_t *cfg, cfg_opt_t *opt, const char *value, void *result) +{ + static const struct + { + char* key; + int opt; + } options[] = + { + { "UART", CHANNEL_IS_UART }, + { "FIFO", CHANNEL_IS_FIFO }, + { "OPTO", CHANNEL_IS_OPTO }, + { "CPU", CHANNEL_IS_CPU }, + { "FT1284", CHANNEL_IS_FT1284} + }; + + int i; + for (i=0; i