2010-02-01 18:33:24 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Boot Loader
|
|
|
|
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
|
|
|
* FILE: boot/armllb/hw/serial.c
|
|
|
|
* PURPOSE: LLB Serial Port Routines
|
|
|
|
* PROGRAMMERS: ReactOS Portable Systems Group
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "precomp.h"
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
LlbSerialPutChar(IN CHAR c)
|
|
|
|
{
|
|
|
|
/* Properly support new-lines */
|
2010-02-02 00:14:14 +00:00
|
|
|
if (c == '\n') LlbSerialPutChar('\r');
|
2021-09-13 01:33:14 +00:00
|
|
|
|
2010-02-01 18:33:24 +00:00
|
|
|
/* Wait for ready */
|
|
|
|
while (!LlbHwUartTxReady());
|
2021-09-13 01:33:14 +00:00
|
|
|
|
2010-02-01 18:33:24 +00:00
|
|
|
/* Send character */
|
|
|
|
LlbHwUartSendChar(c);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|