Mercurial > lcfOS
annotate experiments/qemu_vexpress_a9/main.c @ 349:13a6e73b448f
Added test load from label
author | Windel Bouwman |
---|---|
date | Sat, 08 Mar 2014 16:16:41 +0100 |
parents | c7cc54c0dfdf |
children | 2a970e7270e2 |
rev | line source |
---|---|
340 | 1 |
2 | |
3 volatile unsigned int * const UART0_DR = (unsigned int *)0x10009000; | |
4 | |
5 | |
6 void print_uart0(const char *s) | |
7 { | |
8 while(*s != '\0') { /* Loop until end of string */ | |
9 *UART0_DR = (unsigned int)(*s); /* Transmit char */ | |
10 s++; /* Next char */ | |
11 } | |
12 } | |
13 | |
14 void do_display(void); | |
15 | |
16 void start(void) | |
17 { | |
18 print_uart0("Hello world\n"); | |
19 do_display(); | |
20 for (;;); | |
21 } | |
22 | |
23 |