annotate test/bare/test.c @ 324:ed6d0adaa626

Added qemu arm emulated image
author Windel Bouwman
date Fri, 31 Jan 2014 12:45:17 +0100
parents
children 61c9df5bffce
rev   line source
324
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
1
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
2 volatile unsigned int * const UART0DR = (unsigned int*)0x101f1000;
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
3
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
4 void print_uart0(const char*s)
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
5 {
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
6 while (*s != '\0')
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
7 {
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
8 *UART0DR = (unsigned int)(*s);
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
9 s++;
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
10 }
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
11 }
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
12
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
13 void c_entry()
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
14 {
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
15 print_uart0("Hello world");
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
16 }