aboutsummaryrefslogtreecommitdiff
path: root/pll.s
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2023-12-25 01:40:53 -0600
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2023-12-25 01:40:53 -0600
commitc6ddfc67dd16bd197580fbead9f454031384cc5a (patch)
treeb1e72fa3e3fe5277495639e5eb810b4050ebaa2f /pll.s
parentad75550260068087c4351a6a197e10c02fe3b399 (diff)
Add blink_hex subroutine
Diffstat (limited to 'pll.s')
-rw-r--r--pll.s14
1 files changed, 12 insertions, 2 deletions
diff --git a/pll.s b/pll.s
index 38573f7..bab31f2 100644
--- a/pll.s
+++ b/pll.s
@@ -63,6 +63,16 @@ vco_lock:
delay_1s:
ldr r3, =0x1fca055 // 33.3 * 10^6 (one-third of a second at 100MHz)
1: // 3 clock cycle loop
- subs r3, r3, 1 // 1 clock cycle
+ subs r3, 1 // 1 clock cycle
bne 1b // 2 clock cycles when taken
- mov pc, lr
+ bx lr
+
+.type delay_quick, %function
+.global delay_quick
+
+delay_quick:
+ ldr r3, =0x65b9ab
+1:
+ subs r3, 1
+ bne 1b
+ bx lr