annotate experiments/qemu_vexpress_a9/main.c @ 377:9667d78ba79e

Switched to xml for project description
author Windel Bouwman
date Fri, 11 Apr 2014 15:47:50 +0200
parents c7cc54c0dfdf
children 2a970e7270e2
rev   line source
340
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
1
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
2
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
3 volatile unsigned int * const UART0_DR = (unsigned int *)0x10009000;
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
4
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
5
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
6 void print_uart0(const char *s)
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
7 {
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
8 while(*s != '\0') { /* Loop until end of string */
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
9 *UART0_DR = (unsigned int)(*s); /* Transmit char */
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
10 s++; /* Next char */
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
11 }
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
12 }
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
13
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
14 void do_display(void);
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
15
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
16 void start(void)
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
17 {
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
18 print_uart0("Hello world\n");
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
19 do_display();
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
20 for (;;);
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
21 }
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
22
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
23