Mercurial > lcfOS
comparison 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 |
comparison
equal
deleted
inserted
replaced
339:6ee17c4dd6b8 | 340:c7cc54c0dfdf |
---|---|
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 |