diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2013-04-01 00:45:38 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2013-04-01 00:45:38 +0000 |
commit | a13273eb81098883928cbe25234ff5779563b71d (patch) | |
tree | 42c1c49a92dcdfe9a406f31f9adc8ea50ac8c666 /atahpt.c | |
parent | a6d41be08f676de48e12eaefb987ee7f0e3a786f (diff) | |
download | flashrom-a13273eb81098883928cbe25234ff5779563b71d.tar.gz |
Replace sp_sync_read_timeout() with serialport_read_nonblock().
It seems useful to have a generic and platform-independent method to
read and write to a serial port without blocking. This is the read part.
It stores the current blocking properties before disabling blocking and
restores them after reading. The timeout is implemented as previously
by retrying every millisecond until the timeout is reached or enough
characters are available.
Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1661 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'atahpt.c')
0 files changed, 0 insertions, 0 deletions