annotate kernel/arch/cortexm3.c3 @ 386:2a970e7270e2

Added repeat assembler macro
author Windel Bouwman
date Thu, 01 May 2014 17:40:59 +0200
parents b8ad45b3a573
children
rev   line source
353
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
1 module arch;
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
2
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
3 function void init()
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
4 {
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
5 var int *UART0DR;
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
6 UART0DR = cast<int*>(0x10009000); // UART0 DR register
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
7 *UART0DR = 0x65;
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
8 }
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
9
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
10 function void putc(int c)
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
11 {
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
12 // TODO
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
13 }
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
14
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
15 function void halt()
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
16 {
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
17 }
b8ad45b3a573 Started with strings
Windel Bouwman
parents:
diff changeset
18