diff options
author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2023-12-23 22:31:58 -0600 |
---|---|---|
committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2023-12-23 22:31:58 -0600 |
commit | 3b326e4b9942f90ee0cde8ccae1aef3fa9856fbf (patch) | |
tree | eae3c0658d70b83d807c04a2251099a6076470bb | |
parent | 8f6eed4e102500204879d848572547b35a267cea (diff) |
Use bx instruction for returns
-rw-r--r-- | clocks.s | 2 | ||||
-rw-r--r-- | gpio.s | 2 | ||||
-rw-r--r-- | pll.s | 2 | ||||
-rw-r--r-- | xosc.s | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -15,4 +15,4 @@ setup_clocks: str r0, [r1, CLK_REF_CTRL_OFST] movs r0, 1 // use auxsrc (default pll_sys, =0x1) as clk_sys source str r0, [r1, CLK_SYS_CTRL_OFST] - mov pc, lr + bx lr @@ -22,4 +22,4 @@ setup_gpio: tst r0, r2 // IO_BANK0 is still bit 5 // wait for reset done beq 1b - mov pc, lr + bx lr @@ -55,4 +55,4 @@ vco_lock: ldr r1, =(PLL_SYS_BASE + ATOMIC_CLEAR) movs r0, 0x8 // postdiv (bit 3) str r0, [r1, PWR_OFST] - mov pc, lr + bx lr @@ -20,4 +20,4 @@ start_xosc: ldr r0, [r1, STATUS_OFST] lsrs r0, r0, 31 // poll status bit beq 1b - mov pc, lr + bx lr |