summaryrefslogtreecommitdiffstats
path: root/lib/readline.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-03 00:38:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-18 09:25:04 +0100
commitbbdbda0a7442545ab9022f2ec78e45f1d6750f38 (patch)
tree24e8f59a3d4aa1bf7a126e41e38706bfbac7ea68 /lib/readline.c
parent51e97d11dc81e12c2d8bddc1e79f6d40de49f3de (diff)
downloadbarebox-bbdbda0a7442545ab9022f2ec78e45f1d6750f38.tar.gz
barebox-bbdbda0a7442545ab9022f2ec78e45f1d6750f38.tar.xz
Add Reliable Asynchronous Transfer Protocol
This patch adds support for Reliable Asynchronous Transfer Protocol (RATP) as described in RFC916. Communication over RS232 is often unreliable as characters are lost or misinterpreted. This protocol allows for a reliable packet based communication over serial lines. The implementation simply follows the state machine described in the RFC text with one exception. RFC916 uses a plain checksum for the transferred data. We decided to use CRC16 for greater robustness. Since this is the only RFC916 implementation we currently know of interoperability with other implementations should not matter. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Diffstat (limited to 'lib/readline.c')
0 files changed, 0 insertions, 0 deletions