annotate test/bare/test.c @ 333:dcae6574c974

Increment to qt5
author Windel Bouwman
date Sun, 09 Feb 2014 15:27:57 +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 }