diff target-utils/c139explore/main.c @ 946:845c2e420069

target-utils/c139explore utility started
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 02 Nov 2015 18:09:37 +0000
parents
children c73516dd50bb
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/target-utils/c139explore/main.c	Mon Nov 02 18:09:37 2015 +0000
@@ -0,0 +1,15 @@
+#include "types.h"
+#include "ns16550.h"
+
+struct ns16550_regs *uart_base;
+
+main()
+{
+	uart_base = (struct ns16550_regs *) 0xFFFF5800;
+	printf("C139 hardware exploration utility running\n");
+	for (;;) {
+		putchar('=');
+		if (command_entry())
+			command_dispatch();
+	}
+}