Add base code

This commit is contained in:
2024-11-02 19:07:52 +01:00
parent 9c1b7d0321
commit 6587c8498f
10 changed files with 184 additions and 0 deletions

22
os/Makefile Normal file
View File

@@ -0,0 +1,22 @@
CC = arm-none-eabi-gcc
AS = arm-none-eabi-as
LD = arm-none-eabi-ld
CPU = -mcpu=cortex-m4
THUMB = -mthumb
LDFLAGS = -T linker.ld
CFLAGS = -c $(CPU) $(THUMB) -g
all: main.o process.o scheduler.o
main.o: main.c
$(CC) $(CFLAGS) main.c -o main.o
scheduler.o: scheduler.c
$(CC) $(CFLAGS) scheduler.c -o scheduler.o
process.o: process.c
$(CC) $(CFLAGS) process.c -o process.o
clean:
rm -f *.elf *.o *.i