annotate kernel/arch/vexpressA9.c3 @ 377:9667d78ba79e
Switched to xml for project description
author |
Windel Bouwman |
date |
Fri, 11 Apr 2014 15:47:50 +0200 |
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
|