view experiments/qemu_vexpress_a9/main.c @ 341:4d204f6f7d4e devel

Rewrite of assembler parts
author Windel Bouwman
date Fri, 28 Feb 2014 18:07:14 +0100
parents c7cc54c0dfdf
children 2a970e7270e2
line wrap: on
line source



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


void print_uart0(const char *s)
{
  while(*s != '\0') { /* Loop until end of string */
    *UART0_DR = (unsigned int)(*s); /* Transmit char */
    s++; /* Next char */
  }
}

void do_display(void);

void start(void)
{
    print_uart0("Hello world\n");
    do_display();
    for (;;);
}