libsigrok/hardware
Daniel Thompson 5715e84fe3 serial: Only sleep when no characters are received.
g_usleep(XX) sleeps for *at least* XX microseconds but may sleep for
longers (on older kernels the sleep will typically be 10000us). Thus
byte receive loops containing an unconditional sleep will perform
very poorly (for example it causes the scan in agilent-dmm to timeout
prematurely).

Even on modern kernels serial_readline() has a 2ms sleep per byte which
means it will read at a maximum rate of half a character per millisecond
(~4800baud).

This is fixed by only sleeping when read() returns no data.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2013-09-26 14:57:37 +02:00
..
agilent-dmm Various cosmetics, whitespace, consistency fixes. 2013-07-31 13:09:48 +02:00
alsa alsa: Fix double-free issue. 2013-08-07 16:21:56 +02:00
asix-sigma Various cosmetics, whitespace, consistency fixes. 2013-07-31 13:09:48 +02:00
brymen-dmm s/clear_instances/dev_clear/. 2013-06-02 16:56:41 +02:00
cem-dt-885x Various cosmetics, whitespace, consistency fixes. 2013-07-31 13:09:48 +02:00
center-3xx center-3xx: Initial Center 309 / Voltcraft K204 support. 2013-08-08 19:59:49 +02:00
chronovu-la8 s/clear_instances/dev_clear/. 2013-06-02 16:56:41 +02:00
colead-slm Various cosmetics, whitespace, consistency fixes. 2013-07-31 13:09:48 +02:00
common serial: Only sleep when no characters are received. 2013-09-26 14:57:37 +02:00
demo demo: Use std_dev_clear(). 2013-06-02 16:57:07 +02:00
fluke-dmm Various cosmetics, whitespace, consistency fixes. 2013-07-31 13:09:48 +02:00
fx2lafw s/clear_instances/dev_clear/. 2013-06-02 16:56:41 +02:00
hantek-dso Various cosmetics, whitespace, consistency fixes. 2013-07-31 13:09:48 +02:00
ikalogic-scanalogic2 Cosmetics, typos. 2013-08-07 16:21:57 +02:00
ikalogic-scanaplus Consistent use of "IKALOGIC" spelling. 2013-08-07 16:21:57 +02:00
kecheng-kc-330b Various cosmetics, whitespace, consistency fixes. 2013-07-31 13:09:48 +02:00
lascar-el-usb Various cosmetics, whitespace, consistency fixes. 2013-07-31 13:09:48 +02:00
link-mso19 ols/link-mso19: Consistency fixes. 2013-06-02 17:03:40 +02:00
mic-985xx s/clear_instances/dev_clear/. 2013-06-02 16:56:41 +02:00
openbench-logic-sniffer ols: fixed demux mode disable noise filter 2013-09-07 20:17:16 +02:00
rigol-ds1xx2 rigol-ds1xx2: newer Linux kernels have USBTMC in /sys/class/usbmisc 2013-08-30 13:57:45 +02:00
saleae-logic16 saleae-logic16: Drop unneeded NUM_PROBES. 2013-08-21 11:41:21 +02:00
serial-dmm Voltcraft VC-830: Fix diode mode handling. 2013-09-01 15:27:21 +02:00
tondaj-sl-814 s/clear_instances/dev_clear/. 2013-06-02 16:56:41 +02:00
uni-t-dmm Voltcraft VC-830: Fix diode mode handling. 2013-09-01 15:27:21 +02:00
uni-t-ut32x uni-t-ut32x: Shorten dev_list(). 2013-09-25 14:26:35 +02:00
victor-dmm s/clear_instances/dev_clear/. 2013-06-02 16:56:41 +02:00
zeroplus-logic-cube s/clear_instances/dev_clear/. 2013-06-02 16:56:41 +02:00
Makefile.am saleae-logic16: Initial driver skeleton. 2013-08-20 19:55:22 +02:00