From d1409d5e49b39a6de5f0d46c982d4f7a8d7fc9da Mon Sep 17 00:00:00 2001 From: Hayley Date: Thu, 20 Jun 2019 12:57:28 -0500 Subject: [PATCH] Set Latency UART Latency Timer --- DSP_API/ThumbDV/thumbDV.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DSP_API/ThumbDV/thumbDV.c b/DSP_API/ThumbDV/thumbDV.c index 4602544..9879f23 100644 --- a/DSP_API/ThumbDV/thumbDV.c +++ b/DSP_API/ThumbDV/thumbDV.c @@ -332,6 +332,7 @@ FT_HANDLE thumbDV_openSerial( FT_DEVICE_LIST_INFO_NODE device ) //struct termios tty; FT_HANDLE handle = NULL; FT_STATUS status = FT_OK; + UCHAR latency = 5; output("Trying to open serial port %s", device.SerialNumber); @@ -406,6 +407,7 @@ FT_HANDLE thumbDV_openSerial( FT_DEVICE_LIST_INFO_NODE device ) FT_SetDataCharacteristics(handle, FT_BITS_8, FT_STOP_BITS_1, FT_PARITY_NONE); FT_SetFlowControl(handle, FT_FLOW_NONE, 0, 0); + FT_SetLatencyTimer(handle, latency); if ( _check_serial( handle ) != 0 ) {