From 80739758ca113e3f205b14e047ab77f12a559df0 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 26 Sep 2016 15:01:25 +0200 Subject: Suspend scheduler while waiting for ADC measurement --- src/glutt-o-logique/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/glutt-o-logique/Makefile') diff --git a/src/glutt-o-logique/Makefile b/src/glutt-o-logique/Makefile index 8c7bf8b..ddfd4fd 100644 --- a/src/glutt-o-logique/Makefile +++ b/src/glutt-o-logique/Makefile @@ -161,3 +161,10 @@ else /opt/openocd/bin/openocd -f /opt/openocd/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/"$(BINELF)" verify reset" -c "init" -c "reset" -c "exit" endif +# Some STM32F4DISCOVERY have a newer ST-LINK II interface +deploy21: $(BINDIR)/$(BINELF) +ifeq ($(wildcard /opt/openocd/bin/openocd),) + /usr/bin/openocd -f stm32f4discovery-with-stlinkv2.1.cfg -c "program bin/"$(BINELF)" verify reset" -c "init" -c "reset" -c "exit" +else + /opt/openocd/bin/openocd -f stm32f4discovery-with-stlinkv2.1.cfg -c "program bin/"$(BINELF)" verify reset" -c "init" -c "reset" -c "exit" +endif -- cgit v1.2.3