aboutsummaryrefslogtreecommitdiff
path: root/puzzle/dummy/makefile
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-07 16:56:19 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-07 16:56:19 +0200
commit3f1e5a5c6a594601e597a43a125883d5e3c618c1 (patch)
tree510339a5c7c2c66d6451225f3843730d736559ee /puzzle/dummy/makefile
parentc7aa2916dce4cd3d82ac1be42c433d1ed66db69e (diff)
added pull-up resistors (code works, commit for safety)
Diffstat (limited to 'puzzle/dummy/makefile')
-rw-r--r--puzzle/dummy/makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/puzzle/dummy/makefile b/puzzle/dummy/makefile
index a971dfb..041054e 100644
--- a/puzzle/dummy/makefile
+++ b/puzzle/dummy/makefile
@@ -2,6 +2,18 @@ TARGET = $(BUILD_DIR)/main.elf
include ../../lazy.mk
-export SERIAL_PORT = /dev/ttyACM0
+export SERIAL_PORT ?= /dev/ttyACM0
flash: upload-main;
+test: test_a test_b;
+
+test_a:
+ $(MAKE) -C . clean
+ $(MAKE) -E CMFLAGS+=-D\ CMAKE_CXX_FLAGS=-DTEST_A -C .
+ $(MAKE) -E SERIAL_PORT=/dev/ttyACM0 -C . flash
+
+test_b:
+ $(MAKE) -C . clean
+ $(MAKE) -E CMFLAGS+=-D\ CMAKE_CXX_FLAGS=-DTEST_B -C .
+ $(MAKE) -E SERIAL_PORT=/dev/ttyACM1 -C . flash
+