summaryrefslogtreecommitdiffstats
path: root/radiator-plc/stm32/app/Makefile
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2021-01-12 16:58:31 +0000
committerfishsoupisgood <github@madingley.org>2021-01-12 16:58:31 +0000
commit7c6887eaaf812b63bab6c5e134f80a2ef36aeb31 (patch)
tree4b4b0d371107ae1b8540ca1618cb9aa796b72616 /radiator-plc/stm32/app/Makefile
parentf4b573fe337a436d5e2b20be4be031d77376d609 (diff)
downloadheating-7c6887eaaf812b63bab6c5e134f80a2ef36aeb31.tar.gz
heating-7c6887eaaf812b63bab6c5e134f80a2ef36aeb31.tar.bz2
heating-7c6887eaaf812b63bab6c5e134f80a2ef36aeb31.zip
works
Diffstat (limited to 'radiator-plc/stm32/app/Makefile')
-rw-r--r--radiator-plc/stm32/app/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/radiator-plc/stm32/app/Makefile b/radiator-plc/stm32/app/Makefile
index 8ef06f7..2ff2f51 100644
--- a/radiator-plc/stm32/app/Makefile
+++ b/radiator-plc/stm32/app/Makefile
@@ -20,7 +20,8 @@
CPROTO=cproto
PROG=radiator-plc
-D=radiator-plc0
+D=radiator-plc0 radiator-plc1
+#D=10.32.94.238
V=1
default: ${PROG}.elf
@@ -34,17 +35,19 @@ OBJS = ${CSRCS:%.c=%.o}
${OBJS}:
+
include ../Makefile.include
INCLUDES += -I..
+flash: ${PROG}.hex
+ for d in ${D}; do ssh $$d flash_stm32 < ${PROG}.hex; done
+
protos: ${CSRCS}
echo -n > prototypes.h
${CPROTO} $(INCLUDES) $(DEFINES) -e -v ${CSRCS} > prototypes.h.tmp
mv -f prototypes.h.tmp prototypes.h
-flash: ${PROG}.hex
- ssh ${D} flash_stm32 < ${PROG}.hex
local_flash: ${PROG}.hex
$(Q)$(OOCD) -f $(OOCD_INTERFACE) \