Commit 5ce60f25 authored by Dean Camera's avatar Dean Camera
Browse files

Ensure that USB_DEVICE_ONLY or USB_HOST_ONLY is properly set for devices that...

Ensure that USB_DEVICE_ONLY or USB_HOST_ONLY is properly set for devices that physically do not support a particular mode. Fix main LUFA library makefile default target.
parent a9bb2d54
......@@ -239,8 +239,12 @@
#define USB_CAN_BE_DEVICE
#endif
#if (defined(USB_CAN_BE_DEVICE) && defined(USB_CAN_BE_HOST))
#if ( defined(USB_CAN_BE_DEVICE) && defined(USB_CAN_BE_HOST))
#define USB_CAN_BE_BOTH
#elif ( defined(USB_CAN_BE_DEVICE) && !defined(USB_CAN_BE_HOST))
#define USB_DEVICE_ONLY
#elif (!defined(USB_CAN_BE_DEVICE) && defined(USB_CAN_BE_HOST))
#define USB_HOST_ONLY
#endif
#if defined(USB_HOST_ONLY)
......
......@@ -13,6 +13,8 @@ LUFA_VERSION_NUM = $(shell grep LUFA_VERSION_STRING Version.h | cut -d'"'
EXCLUDE_FROM_EXPORT = Documentation DoxygenPages CodeTemplates Build *.conf *.tar *.o *.lss *.lst *.hex *.elf *.bin
DOXYGEN_OVERRIDE_PARAMS = PROJECT_NUMBER=$(LUFA_VERSION_NUM)
all:
export_tar:
@echo Exporting LUFA library to a TAR archive...
@tar -cf LUFA_$(LUFA_VERSION_NUM).tar --directory=. $(EXCLUDE_FROM_EXPORT:%=--exclude=%) *
......@@ -33,8 +35,6 @@ else
LUFA_PATH = .
ARCH = {AVR8,UC3,XMEGA}
all:
clean:
rm -f $(LUFA_SRC_ALL_FILES:%.c=%.o)
rm -f $(LUFA_SRC_ALL_FILES:%.c=%.lst)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment