commit 2efe1f1ad6d3ea2c94c5ccda4b10bdd4414bd5d6
parent 959061696eb54cd410cd94f90e26ef901d284a3e
Author: Matsuda Kenji <info@mtkn.jp>
Date: Mon, 10 Apr 2023 08:52:09 +0900
unify assembly files
Diffstat:
4 files changed, 13 insertions(+), 18 deletions(-)
diff --git a/Makefile b/Makefile
@@ -13,9 +13,7 @@ LDFLAGS = --no-relax -nostdlib
all: led.uf2
clean:
- rm -f *.o
- rm -f *.elf
- rm -f *.uf2
+ rm -f *.o *.elf *.uf2 *.bin
rm -f bincrc bin2uf2
rm -f boot2/*.o
rm -f boot2/*.bin
diff --git a/led.bin b/led.bin
Binary files differ.
diff --git a/mach.s b/mach.s
@@ -1,5 +1,17 @@
+ .section .vectors
+__vectors:
+.word 0x20040000
+.word reset
+
.section .text
+ .thumb_func
+reset:
+ ldr r0, =0x20040000
+ mov sp, r0
+ bl main
+
.global init
+ .thumb_func
init:
push {lr}
// unreset gpio and pll_sys and uart0
diff --git a/start.s b/start.s
@@ -1,15 +0,0 @@
-__vectors:
-.word 0x20040000
-.word reset
-
- .thumb_func
-reset:
- ldr r0, =0x20040000
- mov sp, r0
- bl main
- b hang
-
- .thumb_func
-hang:
- b hang
-