diff options
author | Bernhard Tittelbach <xro@realraum.at> | 2012-06-22 00:43:25 +0000 |
---|---|---|
committer | Bernhard Tittelbach <xro@realraum.at> | 2012-06-22 00:43:25 +0000 |
commit | 484294037bd9712bcaab9cc980e2f09747079dfd (patch) | |
tree | 87de3fe4ed8847f7cfceb040160f25cc5b73990b /software/hhd70dongle | |
parent | lufa works (diff) |
reset targets
git-svn-id: https://svn.spreadspace.org/mur.sat@547 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/hhd70dongle')
-rw-r--r-- | software/hhd70dongle/Makefile | 8 | ||||
-rwxr-xr-x | software/hhd70dongle/reset.sh | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/software/hhd70dongle/Makefile b/software/hhd70dongle/Makefile index 46f27a2..002ca85 100644 --- a/software/hhd70dongle/Makefile +++ b/software/hhd70dongle/Makefile @@ -24,7 +24,7 @@ NAME := hhd70dongle BOARD_TYPE := hhd70dongle OBJ := $(NAME).o hhd70.o c1101lib.o util.o LIBS := led lufa-descriptor-usbserial -#RESET_FUNC := ../../tools/atmega324u_usbhid/reset +RESET_FUNC := ./reset.sh EXTERNAL_LIBS := lufa @@ -42,3 +42,9 @@ LUFA_OPTS += -D USB_MANUFACTURER="L\"mur.sat\"" LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\"" include ../avr.include.mk + +program0: RESET_PARAM:=/dev/ttyACM0 +program0: program + +program1: RESET_PARAM:=/dev/ttyACM1 +program1: program diff --git a/software/hhd70dongle/reset.sh b/software/hhd70dongle/reset.sh new file mode 100755 index 0000000..317ec8a --- /dev/null +++ b/software/hhd70dongle/reset.sh @@ -0,0 +1,3 @@ +#!/bin/zsh +echo r > ${1-/dev/ttyACM*} +sleep 2 |