Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers...
[reactos.git] / boot / armllb / hw / serial.c
diff --git a/boot/armllb/hw/serial.c b/boot/armllb/hw/serial.c
new file mode 100644 (file)
index 0000000..7bb09cf
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * 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 */
+    if (c == '\n') LlbSerialPutChar('\r');
+    /* Wait for ready */
+    while (!LlbHwUartTxReady());
+    
+    /* Send character */
+    LlbHwUartSendChar(c);
+}
+
+/* EOF */