From 484294037bd9712bcaab9cc980e2f09747079dfd Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Fri, 22 Jun 2012 00:43:25 +0000 Subject: reset targets git-svn-id: https://svn.spreadspace.org/mur.sat@547 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/hhd70dongle/Makefile | 8 +++++++- software/hhd70dongle/reset.sh | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 software/hhd70dongle/reset.sh 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 -- cgit v1.2.3