aboutsummaryrefslogtreecommitdiff
path: root/nrf528xx
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-11-08 16:20:55 +0100
committerlonkaars <loek@pipeframe.xyz>2022-11-08 16:20:55 +0100
commit2784261e7b83b9549c5e2ba0913303d695493456 (patch)
treee973ab0e46823c86aeecfc153f7f7b97b51e6139 /nrf528xx
parentacbc6ee608bc7d9ec33ddf57719841335eff70b1 (diff)
project scaffolding and architecture draft in readme
Diffstat (limited to 'nrf528xx')
-rw-r--r--nrf528xx/main.c0
-rw-r--r--nrf528xx/makefile24
-rw-r--r--nrf528xx/readme.md4
3 files changed, 28 insertions, 0 deletions
diff --git a/nrf528xx/main.c b/nrf528xx/main.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/nrf528xx/main.c
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