summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--any-led/Makefile2
-rw-r--r--rf433send/Makefile2
-rwxr-xr-xtools/reset_lufa_cdc9
-rw-r--r--tuer-rfid/Makefile2
-rw-r--r--usb-1wire/Makefile2
-rw-r--r--usb-adc-dustsensor/Makefile2
-rw-r--r--usb-dual-serial/Makefile2
-rw-r--r--usb-led/Makefile2
-rw-r--r--usb-pwm/Makefile2
9 files changed, 25 insertions, 0 deletions
diff --git a/any-led/Makefile b/any-led/Makefile
index e959daa..1fbb6d6 100644
--- a/any-led/Makefile
+++ b/any-led/Makefile
@@ -25,6 +25,8 @@ BOARD_TYPE := teensy2
OBJ := $(NAME).o
LIBS := util led lufa-descriptor-usbserial anyio
EXTERNAL_LIBS := lufa
+RESET_FUNC := ../tools/reset_lufa_cdc
+RESET_PARAM := 'r'
LUFA_PATH := ../contrib/LUFA-120219
LUFA_OPTS = -D USB_DEVICE_ONLY
diff --git a/rf433send/Makefile b/rf433send/Makefile
index 4327ad9..b544223 100644
--- a/rf433send/Makefile
+++ b/rf433send/Makefile
@@ -26,6 +26,8 @@ BOARD_TYPE := teensy2
OBJ := $(NAME).o
LIBS := util led lufa-descriptor-usbserial usbio
EXTERNAL_LIBS := lufa
+RESET_FUNC := ../tools/reset_lufa_cdc
+RESET_PARAM := 'r'
LUFA_PATH := ../contrib/LUFA-120219
LUFA_OPTS = -D USB_DEVICE_ONLY
diff --git a/tools/reset_lufa_cdc b/tools/reset_lufa_cdc
new file mode 100755
index 0000000..d1f4a80
--- /dev/null
+++ b/tools/reset_lufa_cdc
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+echo "resetting device .."
+echo $1 > /dev/ttyACM0
+
+echo "waiting for device to enumerate .."
+sleep 4
+
+exit 0
diff --git a/tuer-rfid/Makefile b/tuer-rfid/Makefile
index 5f7f893..af82ef9 100644
--- a/tuer-rfid/Makefile
+++ b/tuer-rfid/Makefile
@@ -26,6 +26,8 @@ BOARD_TYPE := teenstep
OBJ := $(NAME).o heartbeat.o stepper.o ledmatrix.o sl018.o keystore.o statemachine.o eventqueue.o limits.o manual.o ajar.o
LIBS := util led lufa-descriptor-usbserial anyio
EXTERNAL_LIBS := lufa
+RESET_FUNC := ../tools/reset_lufa_cdc
+RESET_PARAM := 'r'
LUFA_PATH := ../contrib/LUFA-120219
LUFA_OPTS = -D USB_DEVICE_ONLY
diff --git a/usb-1wire/Makefile b/usb-1wire/Makefile
index 1f08967..1c7a8b4 100644
--- a/usb-1wire/Makefile
+++ b/usb-1wire/Makefile
@@ -25,6 +25,8 @@ BOARD_TYPE := teensy2
OBJ := $(NAME).o
LIBS := util led lufa-descriptor-usbserial usbio onewire ds1820
EXTERNAL_LIBS := lufa
+RESET_FUNC := ../tools/reset_lufa_cdc
+RESET_PARAM := 'r'
LUFA_PATH := ../contrib/LUFA-120219
LUFA_OPTS = -D USB_DEVICE_ONLY
diff --git a/usb-adc-dustsensor/Makefile b/usb-adc-dustsensor/Makefile
index 5c49709..dcbbea8 100644
--- a/usb-adc-dustsensor/Makefile
+++ b/usb-adc-dustsensor/Makefile
@@ -25,6 +25,8 @@ BOARD_TYPE := teensy2
OBJ := $(NAME).o
LIBS := util led lufa-descriptor-usbserial usbio
EXTERNAL_LIBS := lufa
+RESET_FUNC := ../tools/reset_lufa_cdc
+RESET_PARAM := 'r'
LUFA_PATH := ../contrib/LUFA-120219
LUFA_OPTS = -D USB_DEVICE_ONLY
diff --git a/usb-dual-serial/Makefile b/usb-dual-serial/Makefile
index 2aeacec..a4b36af 100644
--- a/usb-dual-serial/Makefile
+++ b/usb-dual-serial/Makefile
@@ -25,6 +25,8 @@ BOARD_TYPE := teensy2
OBJ := $(NAME).o
LIBS := util led lufa-descriptor-usbdualserial
EXTERNAL_LIBS := lufa
+RESET_FUNC := ../tools/reset_lufa_cdc
+RESET_PARAM := 'r'
LUFA_PATH := ../contrib/LUFA-120219
LUFA_OPTS = -D USB_DEVICE_ONLY
diff --git a/usb-led/Makefile b/usb-led/Makefile
index 3fa566f..97d1f76 100644
--- a/usb-led/Makefile
+++ b/usb-led/Makefile
@@ -25,6 +25,8 @@ BOARD_TYPE := teenstep
OBJ := $(NAME).o
LIBS := util led lufa-descriptor-usbserial usbio
EXTERNAL_LIBS := lufa
+RESET_FUNC := ../tools/reset_lufa_cdc
+RESET_PARAM := 'r'
LUFA_PATH := ../contrib/LUFA-120219
LUFA_OPTS = -D USB_DEVICE_ONLY
diff --git a/usb-pwm/Makefile b/usb-pwm/Makefile
index 047d130..5db975c 100644
--- a/usb-pwm/Makefile
+++ b/usb-pwm/Makefile
@@ -25,6 +25,8 @@ BOARD_TYPE := teensy2
OBJ := $(NAME).o
LIBS := util led lufa-descriptor-usbserial usbio
EXTERNAL_LIBS := lufa
+RESET_FUNC := ../tools/reset_lufa_cdc
+RESET_PARAM := 'r'
LUFA_PATH := ../contrib/LUFA-120219
LUFA_OPTS = -D USB_DEVICE_ONLY