From 42410030c9129b252819efd8941b276ba2b8e658 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 17 Aug 2013 19:24:53 +0000 Subject: added reset function for some examples git-svn-id: https://svn.spreadspace.org/avr/trunk@223 aa12f405-d877-488e-9caf-2d797e2a1cc7 --- any-led/Makefile | 2 ++ rf433send/Makefile | 2 ++ tools/reset_lufa_cdc | 9 +++++++++ tuer-rfid/Makefile | 2 ++ usb-1wire/Makefile | 2 ++ usb-adc-dustsensor/Makefile | 2 ++ usb-dual-serial/Makefile | 2 ++ usb-led/Makefile | 2 ++ usb-pwm/Makefile | 2 ++ 9 files changed, 25 insertions(+) create mode 100755 tools/reset_lufa_cdc 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 -- cgit v1.2.3