summaryrefslogtreecommitdiff
path: root/software/hhd70dongle
diff options
context:
space:
mode:
Diffstat (limited to 'software/hhd70dongle')
-rw-r--r--software/hhd70dongle/Makefile8
-rwxr-xr-xsoftware/hhd70dongle/reset.sh3
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