diff options
Diffstat (limited to 'usb-1wire/Makefile')
-rw-r--r-- | usb-1wire/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usb-1wire/Makefile b/usb-1wire/Makefile index 44219b4..70cb4a2 100644 --- a/usb-1wire/Makefile +++ b/usb-1wire/Makefile @@ -25,10 +25,11 @@ BOARD_TYPE := teensy2 OBJ := $(NAME).o
LIBS := util led lufa-descriptor-usbserial usbio onewire ds1820
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-1wire example\"" -D USB_PRODUCT_ LUFA_COMPONENTS := USB USBCLASS
-include ../include.mk
+include $(SPREADAVR_PATH)/include.mk
|