summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-02-28 22:37:53 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-02-28 22:48:51 +0000
commit73c1cff7c242566d995e7b77de0fcec9fe50a6bb (patch)
tree6c880f20cd37dbcf2a5ca99437919e5efebdc368 /src
parent8d13a4662647c33901592f699fcf544d88cfe443 (diff)
downloadopenocd_libswd-73c1cff7c242566d995e7b77de0fcec9fe50a6bb.tar.gz
openocd_libswd-73c1cff7c242566d995e7b77de0fcec9fe50a6bb.tar.bz2
openocd_libswd-73c1cff7c242566d995e7b77de0fcec9fe50a6bb.tar.xz
openocd_libswd-73c1cff7c242566d995e7b77de0fcec9fe50a6bb.zip
FT2232: add missing enum when using ftd2xx library
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/jtag/drivers/ft2232.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/jtag/drivers/ft2232.c b/src/jtag/drivers/ft2232.c
index 43e7b9fb..38195c78 100644
--- a/src/jtag/drivers/ft2232.c
+++ b/src/jtag/drivers/ft2232.c
@@ -86,6 +86,16 @@
/* FT2232 access library includes */
#if BUILD_FT2232_FTD2XX == 1
#include <ftd2xx.h>
+
+enum ftdi_interface
+{
+ INTERFACE_ANY = 0,
+ INTERFACE_A = 1,
+ INTERFACE_B = 2,
+ INTERFACE_C = 3,
+ INTERFACE_D = 4
+};
+
#elif BUILD_FT2232_LIBFTDI == 1
#include <ftdi.h>
#endif