annotate target-utils/c139-lldbg/main.c @ 971:53114af707f2

rvinterf: both README files are now outdated, moved into doc as README.old and README.older
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 07 Nov 2015 06:59:51 +0000
parents d7830aee0d35
children 63ea60e7fbbc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
955
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
1 #include "types.h"
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
2 #include "ns16550.h"
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
3
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
4 struct ns16550_regs *uart_base;
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
5
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
6 main()
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
7 {
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
8 uart_base = (struct ns16550_regs *) 0xFFFF5800;
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
9 printf("\2\2\2*Standalone Low Level Debugger entered\2");
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
10 for (;;) {
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
11 putchar('>');
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
12 if (command_entry())
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
13 command_dispatch();
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
14 }
d7830aee0d35 c139-lldbg hack concocted
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff changeset
15 }