summaryrefslogtreecommitdiff
path: root/src/jtag/ft2232.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jtag/ft2232.c')
-rw-r--r--src/jtag/ft2232.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jtag/ft2232.c b/src/jtag/ft2232.c
index 7d2fac08..c1973a3c 100644
--- a/src/jtag/ft2232.c
+++ b/src/jtag/ft2232.c
@@ -1009,6 +1009,12 @@ int ft2232_init(void)
{
DEBUG("current latency timer: %i", latency_timer);
}
+
+ if ((status = FT_SetTimeouts(ftdih, 5000, 5000)) != FT_OK)
+ {
+ ERROR("unable to set timeouts: %i", status);
+ return ERROR_JTAG_INIT_FAILED;
+ }
if ((status = FT_SetBitMode(ftdih, 0x0b, 2)) != FT_OK)
{