diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/bare/test.c	Fri Jan 31 12:45:17 2014 +0100
@@ -0,0 +1,16 @@
+
+volatile unsigned int * const UART0DR = (unsigned int*)0x101f1000;
+
+void print_uart0(const char*s)
+{
+ while (*s != '\0')
+ {
+  *UART0DR = (unsigned int)(*s);
+  s++;
+ }
+}
+
+void c_entry()
+{
+ print_uart0("Hello world");
+}