diff options
author | Thomas White <taw@physics.org> | 2018-07-28 20:42:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-07-28 20:42:25 +0200 |
commit | 354c532e19d9ab338720f3031ba8a0787886f4ee (patch) | |
tree | 16955e3e18c48b5a7d05b1e82493d2e3d52fc340 /src/main.s | |
parent | c4cdeef09cb36f0e7e9d84571a023f59b33b7d1c (diff) |
Diffstat (limited to 'src/main.s')
-rw-r--r-- | src/main.s | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |