summaryrefslogtreecommitdiff
path: root/src/main.s
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-07-28 20:42:25 +0200
committerThomas White <taw@physics.org>2018-07-28 20:42:25 +0200
commit354c532e19d9ab338720f3031ba8a0787886f4ee (patch)
tree16955e3e18c48b5a7d05b1e82493d2e3d52fc340 /src/main.s
parentc4cdeef09cb36f0e7e9d84571a023f59b33b7d1c (diff)
Initial framebuffer stuffHEADmaster
Diffstat (limited to 'src/main.s')
-rw-r--r--src/main.s5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.s b/src/main.s
index 40f3ff0..ca63640 100644
--- a/src/main.s
+++ b/src/main.s
@@ -19,6 +19,7 @@
*/
.include "swi_numbers.h"
+.include "ports.h"
.section .init
@@ -64,8 +65,10 @@ reset:
LDMIA R10!, {R0-R7}
STMIA R11!, {R0-R7}
+ BL framebuffer_init
+
/* Configure GPIOs */
- LDR R8, =0x3f200000
+ LDR R8, =(PERIPHERAL_BASE+OFFS_GPIO)
LDR R1, [R8, #0x04] @ GPFSEL1
ORR R1, R1, #1<<18 @ GPIO pin 16 is output
BIC R1, R1, #3<<21 @ GPIO pin 17 is input