Mercurial > lcfOS
annotate kernel/arch/vexpressA9.c3 @ 373:fc1b89b09896
Added run test.py
author | Windel Bouwman |
---|---|
date | Fri, 21 Mar 2014 14:32:54 +0100 |
parents | 577ed7fb3fe4 |
children | 6df89163e114 |
rev | line source |
---|---|
352 | 1 module arch; |
367 | 2 import io; |
352 | 3 |
362 | 4 |
352 | 5 function void init() |
6 { | |
354 | 7 // putc(65) |
353 | 8 } |
9 | |
10 function void putc(int c) | |
11 { | |
352 | 12 var int *UART0DR; |
13 UART0DR = cast<int*>(0x10009000); // UART0 DR register | |
353 | 14 *UART0DR = c; |
352 | 15 } |
16 | |
17 function void halt() | |
18 { | |
19 } | |
20 |