annotate test/bare/test.c @ 370:f86e79246602

Remove null stdio
author Windel Bouwman
date Fri, 21 Mar 2014 11:57:32 +0100
parents 61c9df5bffce
children
rev   line source
324
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
1
327
61c9df5bffce Changed emulated board to cortex a8 board
Windel Bouwman
parents: 324
diff changeset
2 volatile unsigned int * const UART0DR = (unsigned int*)0x10009000;
324
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 }