summaryrefslogtreecommitdiff
path: root/ws2812/Makefile
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-10-25 13:07:54 +0100
committerxengineering <mail2xengineering@protonmail.com>2020-10-25 13:07:54 +0100
commit58d3787ca563b7d6a2cb4e0a1ab7fdde67fd5557 (patch)
tree42115a58b60bdd7fa027b8b37cac7e76e7b74fab /ws2812/Makefile
parent9435a85605d7efc75642491c85b0942bd558fcec (diff)
downloadstm32f103c8-examples-58d3787ca563b7d6a2cb4e0a1ab7fdde67fd5557.tar
stm32f103c8-examples-58d3787ca563b7d6a2cb4e0a1ab7fdde67fd5557.tar.zst
stm32f103c8-examples-58d3787ca563b7d6a2cb4e0a1ab7fdde67fd5557.zip
Add ws2812 Code
Diffstat (limited to 'ws2812/Makefile')
-rw-r--r--ws2812/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/ws2812/Makefile b/ws2812/Makefile
new file mode 100644
index 0000000..8973ef6
--- /dev/null
+++ b/ws2812/Makefile
@@ -0,0 +1,34 @@
+PROJECT = ws2812
+BUILD_DIR = bin
+
+SHARED_DIR = ../libraries
+CFILES = main.c
+CFILES += ws2812.c
+#AFILES += api-asm.S
+
+# TODO - you will need to edit these two lines!
+DEVICE=stm32f103c8
+#OOCD_FILE = board/stm32f4discovery.cfg
+
+# You shouldn't have to edit anything below here.
+VPATH += $(SHARED_DIR)
+INCLUDES += $(patsubst %,-I%, . $(SHARED_DIR))
+OPENCM3_DIR=../libopencm3
+
+include $(OPENCM3_DIR)/mk/genlink-config.mk
+include ../rules.mk
+include $(OPENCM3_DIR)/mk/genlink-rules.mk
+
+
+# Black Magic Probe:
+
+GDB=/usr/bin/arm-none-eabi-gdb
+BMP_DEVICE=/dev/ttyACM0
+
+bmp: $(PROJECT).elf
+ $(GDB) $(PROJECT).elf \
+ -ex 'set confirm off' \
+ -ex 'target extended-remote $(BMP_DEVICE)' \
+ -ex 'monitor swdp_scan' \
+ -ex 'attach 1'
+