diff options
author | Christian Pointner <equinox@spreadspace.org> | 2013-01-27 17:33:22 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2013-01-27 17:33:22 +0000 |
commit | 661b77b947d215aedc2d27750131045029103f68 (patch) | |
tree | 8b73cbd2160e57d3532f9b74b7b1452d0b4462de | |
parent | usb-i2c-sl018 added lufa i2c tests (non working) (diff) |
lufa components are now selectable
git-svn-id: https://svn.spreadspace.org/avr/trunk@67 aa12f405-d877-488e-9caf-2d797e2a1cc7
-rw-r--r-- | lufa.mk | 2 | ||||
-rw-r--r-- | rf433send/Makefile | 2 | ||||
-rw-r--r-- | usb-i2c-sl018/Makefile | 2 | ||||
-rw-r--r-- | usb-led/Makefile | 2 | ||||
-rw-r--r-- | usb-serial/Makefile | 2 | ||||
-rw-r--r-- | usb-spi/Makefile | 2 |
6 files changed, 11 insertions, 1 deletions
@@ -23,7 +23,7 @@ include ../defines.mk
include $(LUFA_PATH)/LUFA/makefile
-SRC = $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
+SRC:=$(foreach COMP,$(LUFA_COMPONENTS),$(LUFA_SRC_$(COMP)))
CFLAGS += -DF_USB=$(F_USB)UL
CFLAGS += -DBOARD=BOARD_$(LUFA_BOARD)
diff --git a/rf433send/Makefile b/rf433send/Makefile index 04b484d..1cbd877 100644 --- a/rf433send/Makefile +++ b/rf433send/Makefile @@ -40,4 +40,6 @@ LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT LUFA_OPTS += -D USB_MANUFACTURER="L\"equinox\""
LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+LUFA_COMPONENTS := USB USBCLASS
+
include ../include.mk
diff --git a/usb-i2c-sl018/Makefile b/usb-i2c-sl018/Makefile index 738e7e7..f505450 100644 --- a/usb-i2c-sl018/Makefile +++ b/usb-i2c-sl018/Makefile @@ -39,4 +39,6 @@ LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT LUFA_OPTS += -D USB_MANUFACTURER="L\"equinox\""
LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+LUFA_COMPONENTS := USB USBCLASS TWI
+
include ../include.mk
diff --git a/usb-led/Makefile b/usb-led/Makefile index d73cb3e..8188c95 100644 --- a/usb-led/Makefile +++ b/usb-led/Makefile @@ -39,4 +39,6 @@ LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT LUFA_OPTS += -D USB_MANUFACTURER="L\"equinox\""
LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+LUFA_COMPONENTS := USB USBCLASS
+
include ../include.mk
diff --git a/usb-serial/Makefile b/usb-serial/Makefile index 7ec4afa..84f0c7e 100644 --- a/usb-serial/Makefile +++ b/usb-serial/Makefile @@ -39,4 +39,6 @@ LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT LUFA_OPTS += -D USB_MANUFACTURER="L\"equinox\""
LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+LUFA_COMPONENTS := USB USBCLASS SERIAL
+
include ../include.mk
diff --git a/usb-spi/Makefile b/usb-spi/Makefile index 15b9bde..be3367a 100644 --- a/usb-spi/Makefile +++ b/usb-spi/Makefile @@ -39,4 +39,6 @@ LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT LUFA_OPTS += -D USB_MANUFACTURER="L\"equinox\""
LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+LUFA_COMPONENTS := USB USBCLASS
+
include ../include.mk
|