view test/bare/test.c @ 346:3bb7dcfe5529

expanded arm target
author Windel Bouwman
date Fri, 07 Mar 2014 17:05:32 +0100
parents 61c9df5bffce
children
line wrap: on
line source


volatile unsigned int * const UART0DR = (unsigned int*)0x10009000;

void print_uart0(const char*s)
{
 while (*s != '\0')
 {
  *UART0DR = (unsigned int)(*s);
  s++;
 }
}

void c_entry()
{
 print_uart0("Hello world");
}