annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
946
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
1 #include "types.h"
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
2 #include "ns16550.h"
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
3
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
4 struct ns16550_regs *uart_base;
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
5
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
6 main()
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
7 {
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
8 uart_base = (struct ns16550_regs *) 0xFFFF5800;
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
9 printf("C139 hardware exploration utility running\n");
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
10 for (;;) {
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
11 putchar('=');
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
12 if (command_entry())
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
13 command_dispatch();
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
14 }
845c2e420069 target-utils/c139explore utility started
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
15 }