annotate experiments/qemu_vexpress_a9/main.c @ 340:c7cc54c0dfdf devel

Test featurebranch
author Windel Bouwman
date Sun, 23 Feb 2014 16:24:01 +0100
parents
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