OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [doc/] [man/] [man1/] [set_ftdi_lat.1] - Blame information for rev 24

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 wfjm
.\"  -*- nroff -*-
2 22 wfjm
.\"  $Id: set_ftdi_lat.1 547 2013-12-29 13:10:07Z mueller $
3 8 wfjm
.\"
4 22 wfjm
.\" Copyright 2010-2013 by Walter F.J. Mueller 
5 8 wfjm
.\"
6
.\" ------------------------------------------------------------------
7
.
8 22 wfjm
.TH SET_FTDI_LAT 1 2013-12-26 "Retro Project" "Retro Project Manual"
9 8 wfjm
.\" ------------------------------------------------------------------
10
.SH NAME
11
set_ftdi_lat \- set latency timer in FTDI USB UART or FIFO
12
.\" ------------------------------------------------------------------
13
.SH SYNOPSIS
14
.
15
.SY set_ftdi_lat
16
.RI [ dev ]
17
.RI [ time ]
18
.YS
19
.
20
.\" ------------------------------------------------------------------
21
.SH DESCRIPTION
22 22 wfjm
\fBNote:\fP command is obsolete when kernel 2.6.32 or newer is used.
23
See NOTES section.
24
.
25
.PP
26 8 wfjm
FTDI USB UART or FIFO adapters of type FT232, FT245, and other similar
27
models have a latency timer which controls the maximal time between reception
28
of a byte by the UART or FIFO and the emission of a USB frame. The default
29 22 wfjm
is 16 msec on kernels prior to 2.6.32 and can lead to unsatisfactory
30
response times.
31 8 wfjm
The
32
.B set_ftdi_lat
33 22 wfjm
script allows to set this latency timer via a node in the \fI/sys\fP
34 8 wfjm
virtual file system, specifically
35
.IP "" 4
36
.I /sys/bus/usb-serial/devices/ttyUSBn/latency_timer
37
.
38
.PP
39 22 wfjm
The first optional argument \fIdev\fP allows to specify the device name
40
in the form \fIUSBn\fP with the default \fIUSB0\fP. The second optional
41
argument \fItime\fP allows to specify the new value of the latency timer,
42
given in msec. Default is 1 msec.
43 8 wfjm
.
44
.\" ------------------------------------------------------------------
45
.SH EXIT STATUS
46 22 wfjm
If device tty\fIdev\fP is not found or the entry in \fI/sys\fP is not
47
writable an exit status 1 is returned.
48 8 wfjm
 
49
.\" ------------------------------------------------------------------
50
.SH EXAMPLES
51 22 wfjm
In general the command is given via \fBsudo\fP(8) like
52
 
53 8 wfjm
.EX
54
    sudo set_ftdi_lat USB0 1
55
.EE
56
.\" ------------------------------------------------------------------
57
.SH "SEE ALSO"
58 22 wfjm
.BR sudo (8)
59 8 wfjm
.
60
.\" ------------------------------------------------------------------
61 22 wfjm
.SH NOTES
62
For linux kernel 2.6.32 or newer the default is 1 ms already. On all
63
up-to-date systems therefore no need to use this command.
64
.
65
.\" ------------------------------------------------------------------
66 8 wfjm
.SH AUTHOR
67
Walter F.J. Mueller 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.