summaryrefslogtreecommitdiff
path: root/usb-adc-dustsensor
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-02-24 17:23:53 +0100
committerChristian Pointner <equinox@spreadspace.org>2015-02-24 17:23:53 +0100
commit0d8eee79a9eb4701f3100434f5d696d912f7816f (patch)
tree0e270775073f0859f36c1ae3c887bdb0c203d5c1 /usb-adc-dustsensor
parentintroduced path variable for avr utilities path (diff)
added SPREADAVR_PATH variable to all examples
Diffstat (limited to 'usb-adc-dustsensor')
-rw-r--r--usb-adc-dustsensor/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/usb-adc-dustsensor/Makefile b/usb-adc-dustsensor/Makefile
index 71133e8..64b48b2 100644
--- a/usb-adc-dustsensor/Makefile
+++ b/usb-adc-dustsensor/Makefile
@@ -25,10 +25,11 @@ BOARD_TYPE := teensy2
OBJ := $(NAME).o
LIBS := util led lufa-descriptor-usbserial usbio
EXTERNAL_LIBS := lufa
-RESET_FUNC := ../tools/reset_lufa_cdc
+SPREADAVR_PATH := ..
+RESET_FUNC := $(SPREADAVR_PATH)/tools/reset_lufa_cdc
RESET_PARAM := 'r'
-LUFA_PATH := ../contrib/LUFA-120219
+LUFA_PATH := $(SPREADAVR_PATH)/contrib/LUFA-120219
LUFA_OPTS = -D USB_DEVICE_ONLY
LUFA_OPTS += -D DEVICE_STATE_AS_GPIOR=0
LUFA_OPTS += -D ORDERED_EP_CONFIG
@@ -43,4 +44,4 @@ LUFA_OPTS += -D USB_PRODUCT="L\"spreadspace usb-adc-dustsensor example\"" -D USB
LUFA_COMPONENTS := USB USBCLASS
-include ../include.mk
+include $(SPREADAVR_PATH)/include.mk