summaryrefslogtreecommitdiff
path: root/usb-led
diff options
context:
space:
mode:
Diffstat (limited to 'usb-led')
-rw-r--r--usb-led/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/usb-led/Makefile b/usb-led/Makefile
index e3b0b57..290a668 100644
--- a/usb-led/Makefile
+++ b/usb-led/Makefile
@@ -25,10 +25,11 @@ BOARD_TYPE := teenstep
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-led example\"" -D USB_PRODUCT_LE
LUFA_COMPONENTS := USB USBCLASS
-include ../include.mk
+include $(SPREADAVR_PATH)/include.mk