Mercurial > lcfOS
view experiments/qemu_vexpress_a9/main.c @ 396:fb3c1f029b30
Added baselexer into c3 lexer
author | Windel Bouwman |
---|---|
date | Tue, 27 May 2014 22:19:32 +0200 |
parents | 34ac19044b8a |
children |
line wrap: on
line source
volatile unsigned int * const UART0_DR = (unsigned int *)0x109000; 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 start(void) { print_uart0("Hello world\n"); for (;;); }