commit 26b9cb79cba4f70b7123101fea04ed118b6cfd56
parent 21d56c0168eac43af1475fefce8ed038c7c98beb
Author: Matsuda Kenji <info@mtkn.jp>
Date: Sat, 29 Apr 2023 08:56:10 +0900
fire rosc
Diffstat:
1 file changed, 1 insertion(+), 22 deletions(-)
diff --git a/ex2/main.s b/ex2/main.s
@@ -33,7 +33,7 @@ unreset_chk:
mov r0, #3
lsl r0, r0, #24 // gpio25 | gpio24
str r0, [r3, #0x24] // SIO: GPIO_OE
-/*
+
// setup xosc
ldr r3, xosc_base
mov r0, #47 // start up delay for 12MHz xosc
@@ -49,25 +49,6 @@ wait_xosc:
ldr r3, clocks_base
ldr r0, =(0x3 << 5 | 0x1)
str r0, [r3, #0x3c] // CLOCKS: CLK_SYS_CTRL
-*/
-
- // setup rosc
- ldr r3, rosc_base
- ldr r0, =(0xfab << 12 | 0xfa6)
- str r0, [r3, #0x0] // ROSC: CTRL
-
- mov r4, #5
-loop1:
- bl bled0
- bl bled1
- sub r4, #1
- bne loop1
-
- ldr r0, =(0x9696 << 16 | 7 << 4 | 7)
- str r0, [r3, #0x4] // ROSC: FREQA
-
- ldr r0, =0xaa1
- str r0, [r3, #0x10] // ROSC: DIV
loop:
bl bled0
@@ -146,7 +127,5 @@ io_bank0_base:
.word 0x40014000
xosc_base:
.word 0x40024000
-rosc_base:
- .word 0x40060000
sio_base:
.word 0xd0000000