mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2025-12-06 03:01:59 +01:00
Set Latency UART Latency Timer
This commit is contained in:
parent
6880b87d01
commit
d1409d5e49
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue