diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-04-12 14:33:13 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-04-17 09:21:07 +0200 |
commit | 84fc6119d3aaa33344d154428ce37800a96a39b9 (patch) | |
tree | db1ac8850baf99e9ef022e28deefe832deafd98b /common/console.c | |
parent | 6377d27b951bfddc67bba16e83f79ae1d9fa8eb9 (diff) | |
download | barebox-84fc6119d3aaa33344d154428ce37800a96a39b9.tar.gz barebox-84fc6119d3aaa33344d154428ce37800a96a39b9.tar.xz |
console: Introduce console_drain()
Generalize high baud rate UART polling code found in lib/xmodem.c and
expose it as a generic function in console API.
The usecase for this -- besides X/Y-mode data transfers where the code
originated -- is command/reply type of serial exchages at high baud
rates (~1Mbaud) with payloads exceeding inernal UART FIFOs in
size. Such interactions are not uncommon in serdev device and this
patch is done in preparation for serdev support code that will follow.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/console.c')
0 files changed, 0 insertions, 0 deletions