From 2784261e7b83b9549c5e2ba0913303d695493456 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 8 Nov 2022 16:20:55 +0100 Subject: project scaffolding and architecture draft in readme --- nrf528xx/main.c | 0 nrf528xx/makefile | 24 ++++++++++++++++++++++++ nrf528xx/readme.md | 4 ++++ 3 files changed, 28 insertions(+) create mode 100644 nrf528xx/main.c create mode 100644 nrf528xx/makefile create mode 100644 nrf528xx/readme.md (limited to 'nrf528xx') diff --git a/nrf528xx/main.c b/nrf528xx/main.c new file mode 100644 index 0000000..e69de29 diff --git a/nrf528xx/makefile b/nrf528xx/makefile new file mode 100644 index 0000000..78d52e2 --- /dev/null +++ b/nrf528xx/makefile @@ -0,0 +1,24 @@ +CC = gcc +LD = gcc +RM = rm -f +CFLAGS = +LFLAGS = +TARGET = main + +SRCS := $(wildcard *.c) +OBJS := $(patsubst %.c,%.o, $(SRCS)) + +all: $(TARGET) + +%.o: %.c + $(CC) -c $(CFLAGS) $< -o $@ + +$(TARGET): $(OBJS) + $(LD) $^ $(LFLAGS) -o $@ + +clean: + $(RM) $(TARGET) $(OBJS) + +compile_commands: clean + compiledb make + diff --git a/nrf528xx/readme.md b/nrf528xx/readme.md new file mode 100644 index 0000000..fcebcf8 --- /dev/null +++ b/nrf528xx/readme.md @@ -0,0 +1,4 @@ +# nrf528xx subdirectory + +- compatible with nrf52833 and nrf52840 +- make for compiling and building -- cgit v1.2.3