|
|
|
@ -35,7 +35,7 @@ LUFA_BUILD_OPTIONAL_VARS +=
|
|
|
|
|
#
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
# Sanity check the user LUFA_PATH and ARCH makefile options
|
|
|
|
|
# Sanity-check values of mandatory user-supplied variables
|
|
|
|
|
ARCH ?= $(error Makefile ARCH value not set.)
|
|
|
|
|
LUFA_PATH ?= $(error Makefile LUFA_PATH value not set.)
|
|
|
|
|
|
|
|
|
@ -43,42 +43,42 @@ LUFA_PATH ?= $(error Makefile LUFA_PATH value not set.)
|
|
|
|
|
LUFA_ROOT_PATH ?= $(LUFA_PATH)
|
|
|
|
|
|
|
|
|
|
# Construct LUFA module source variables
|
|
|
|
|
LUFA_SRC_USB = $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Device_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Endpoint_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Host_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Pipe_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/USBController_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/USBInterrupt_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/EndpointStream_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/PipeStream_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/ConfigDescriptor.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/DeviceStandardReq.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/Events.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/HostStandardReq.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/USBTask.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Common/HIDParser.c
|
|
|
|
|
LUFA_SRC_USBCLASS = $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/AudioClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/CDCClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/HIDClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/MassStorageClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/MIDIClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/RNDISClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/AndroidAccessoryClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/AudioClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/CDCClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/HIDClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/MassStorageClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/MIDIClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/PrinterClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/RNDISClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/StillImageClassHost.c
|
|
|
|
|
LUFA_SRC_TEMPERATURE = $(LUFA_ROOT_PATH)/Drivers/Board/Temperature.c
|
|
|
|
|
LUFA_SRC_SERIAL = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/Serial_$(ARCH).c
|
|
|
|
|
LUFA_SRC_TWI = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/TWI_$(ARCH).c
|
|
|
|
|
LUFA_SRC_USB = $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Device_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Endpoint_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Host_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Pipe_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/USBController_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/USBInterrupt_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/EndpointStream_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/PipeStream_$(ARCH).c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/ConfigDescriptor.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/DeviceStandardReq.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/Events.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/HostStandardReq.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Core/USBTask.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Common/HIDParser.c
|
|
|
|
|
LUFA_SRC_USBCLASS = $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/AudioClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/CDCClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/HIDClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/MassStorageClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/MIDIClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/RNDISClassDevice.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/AndroidAccessoryClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/AudioClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/CDCClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/HIDClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/MassStorageClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/MIDIClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/PrinterClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/RNDISClassHost.c \
|
|
|
|
|
$(LUFA_ROOT_PATH)/Drivers/USB/Class/Host/StillImageClassHost.c
|
|
|
|
|
LUFA_SRC_TEMPERATURE = $(LUFA_ROOT_PATH)/Drivers/Board/Temperature.c
|
|
|
|
|
LUFA_SRC_SERIAL = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/Serial_$(ARCH).c
|
|
|
|
|
LUFA_SRC_TWI = $(LUFA_ROOT_PATH)/Drivers/Peripheral/$(ARCH)/TWI_$(ARCH).c
|
|
|
|
|
|
|
|
|
|
# Build a list of all available module sources
|
|
|
|
|
LUFA_SRC_ALL_FILES = $(LUFA_SRC_USB) \
|
|
|
|
|
$(LUFA_SRC_USBCLASS) \
|
|
|
|
|
$(LUFA_SRC_TEMPERATURE) \
|
|
|
|
|
$(LUFA_SRC_SERIAL) \
|
|
|
|
|
$(LUFA_SRC_TWI)
|
|
|
|
|
LUFA_SRC_ALL_FILES = $(LUFA_SRC_USB) \
|
|
|
|
|
$(LUFA_SRC_USBCLASS) \
|
|
|
|
|
$(LUFA_SRC_TEMPERATURE) \
|
|
|
|
|
$(LUFA_SRC_SERIAL) \
|
|
|
|
|
$(LUFA_SRC_TWI)
|