diff options
author | David Shah <davey1576@gmail.com> | 2018-02-09 12:25:48 +0000 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-02-09 12:25:48 +0000 |
commit | 9ac405f98fe14f6d2f05774ad4d62b873ec20504 (patch) | |
tree | 19137cb69878febf1ac0a360a0f133015cc4c587 /iceprog | |
parent | a7a6f3695f03173e2bae0b206b785597f0342ef0 (diff) | |
download | icestorm-9ac405f98fe14f6d2f05774ad4d62b873ec20504.tar.gz icestorm-9ac405f98fe14f6d2f05774ad4d62b873ec20504.tar.bz2 icestorm-9ac405f98fe14f6d2f05774ad4d62b873ec20504.zip |
Add out-of-the-box FT232H support (for Upduino 2, etc)
Diffstat (limited to 'iceprog')
-rw-r--r-- | iceprog/iceprog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iceprog/iceprog.c b/iceprog/iceprog.c index 4a634c5..ce1faba 100644 --- a/iceprog/iceprog.c +++ b/iceprog/iceprog.c @@ -288,7 +288,7 @@ static void help(const char *progname) fprintf(stderr, " %s -t\n", progname); fprintf(stderr, "\n"); fprintf(stderr, "General options:\n"); - fprintf(stderr, " -d <device string> use the specified USB device [default: i:0x0403:0x6010]\n"); + fprintf(stderr, " -d <device string> use the specified USB device [default: i:0x0403:0x6010 or i:0x0403:0x6014]\n"); fprintf(stderr, " d:<devicenode> (e.g. d:002/005)\n"); fprintf(stderr, " i:<vendor>:<product> (e.g. i:0x0403:0x6010)\n"); fprintf(stderr, " i:<vendor>:<product>:<index> (e.g. i:0x0403:0x6010:0)\n"); @@ -610,8 +610,8 @@ int main(int argc, char **argv) error(2); } } else { - if (ftdi_usb_open(&ftdic, 0x0403, 0x6010)) { - fprintf(stderr, "Can't find iCE FTDI USB device (vendor_id 0x0403, device_id 0x6010).\n"); + if (ftdi_usb_open(&ftdic, 0x0403, 0x6010) && ftdi_usb_open(&ftdic, 0x0403, 0x6014)) { + fprintf(stderr, "Can't find iCE FTDI USB device (vendor_id 0x0403, device_id 0x6010 or 0x6014).\n"); error(2); } } |