path: root/common
diff options
authorAndrey Smirnov <>2018-04-12 14:33:13 -0700
committerSascha Hauer <>2018-04-17 09:21:07 +0200
commit84fc6119d3aaa33344d154428ce37800a96a39b9 (patch)
treedb1ac8850baf99e9ef022e28deefe832deafd98b /common
parent6377d27b951bfddc67bba16e83f79ae1d9fa8eb9 (diff)
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 <> Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions