diff --git a/Bootloaders/CDC/makefile b/Bootloaders/CDC/makefile index 8425e9b31269cc9e17610c355757bb5a50f723da..71e2da7f6a28cd79383fe42eb1838aee7cf785b0 100644 --- a/Bootloaders/CDC/makefile +++ b/Bootloaders/CDC/makefile @@ -110,6 +110,15 @@ OBJDIR = . LUFA_PATH = ../.. +# LUFA library compile-time options +LUFA_OPTS = USB_DEVICE_ONLY +LUFA_OPTS += USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +LUFA_OPTS += USE_RAM_DESCRIPTORS + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -172,11 +181,8 @@ BOOT_START = 0x1E000 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSB_DEVICE_ONLY -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -CDEFS += -DUSE_RAM_DESCRIPTORS -DBOOT_START_ADDR=$(BOOT_START)UL +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) +CDEFS += -DBOOT_START_ADDR=$(BOOT_START)UL # Place -D or -U options here for ASM sources diff --git a/Bootloaders/DFU/makefile b/Bootloaders/DFU/makefile index 871a92da2c771c4ebdbdccab5b084dc8ddc44856..410301431e37cfe021d147fee857e6b0e31cc094 100644 --- a/Bootloaders/DFU/makefile +++ b/Bootloaders/DFU/makefile @@ -110,6 +110,16 @@ OBJDIR = . LUFA_PATH = ../.. +# LUFA library compile-time options +LUFA_OPTS = USB_DEVICE_ONLY +LUFA_OPTS += USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += CONTROL_ONLY_DEVICE +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=32 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +LUFA_OPTS += USE_RAM_DESCRIPTORS + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -172,11 +182,8 @@ BOOT_START = 0x1E000 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSB_DEVICE_ONLY -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DCONTROL_ONLY_DEVICE -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=32 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -CDEFS += -DUSE_RAM_DESCRIPTORS -DBOOT_START_ADDR=$(BOOT_START)UL +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) +CDEFS += -DBOOT_START_ADDR=$(BOOT_START)UL # Place -D or -U options here for ASM sources diff --git a/Bootloaders/TeensyHID/makefile b/Bootloaders/TeensyHID/makefile index fb3f1eb28c6d371260893dd22a5f4cdf4535e53d..f4b8843086ef7120251696fbc2f0a6197141ddaf 100644 --- a/Bootloaders/TeensyHID/makefile +++ b/Bootloaders/TeensyHID/makefile @@ -110,6 +110,16 @@ OBJDIR = . LUFA_PATH = ../.. +# LUFA library compile-time options +LUFA_OPTS = USB_DEVICE_ONLY +LUFA_OPTS += USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += CONTROL_ONLY_DEVICE +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +LUFA_OPTS += USE_RAM_DESCRIPTORS + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -172,11 +182,8 @@ BOOT_START = 0xC000 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSB_DEVICE_ONLY -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DCONTROL_ONLY_DEVICE -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -CDEFS += -DUSE_RAM_DESCRIPTORS -DBOOT_START_ADDR=$(BOOT_START)UL +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) +CDEFS += -DBOOT_START_ADDR=$(BOOT_START)UL # Place -D or -U options here for ASM sources diff --git a/Demos/Device/ClassDriver/AudioInput/makefile b/Demos/Device/ClassDriver/AudioInput/makefile index 99d1e94e809318e300425cec75e75f93c536199e..2e3e72f0a414d7f980c43f0f36af0d7c41374109 100644 --- a/Demos/Device/ClassDriver/AudioInput/makefile +++ b/Demos/Device/ClassDriver/AudioInput/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -182,10 +191,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/ClassDriver/AudioOutput/makefile b/Demos/Device/ClassDriver/AudioOutput/makefile index 9c3639fe9d0cacab618c92cbe47a04477201a66f..4f76df9b9a583619a01997c3235ebde8c30f7e4f 100644 --- a/Demos/Device/ClassDriver/AudioOutput/makefile +++ b/Demos/Device/ClassDriver/AudioOutput/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -182,12 +191,10 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) CDEFS += -DAUDIO_OUT_MONO + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Device/ClassDriver/CDC/makefile b/Demos/Device/ClassDriver/CDC/makefile index 22846c90d1dce3a303b61428d1b3438649a76727..cb3e0fe0fc3103451343046a9c6d9720ba852250 100644 --- a/Demos/Device/ClassDriver/CDC/makefile +++ b/Demos/Device/ClassDriver/CDC/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -182,10 +190,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/ClassDriver/DualCDC/makefile b/Demos/Device/ClassDriver/DualCDC/makefile index cf3689b49188a86eea7e5f0e206068168252a92a..cde2ed46aa5d4411cc8e2411f87cb9a590025cb3 100644 --- a/Demos/Device/ClassDriver/DualCDC/makefile +++ b/Demos/Device/ClassDriver/DualCDC/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -182,10 +190,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/ClassDriver/GenericHID/makefile b/Demos/Device/ClassDriver/GenericHID/makefile index 64d70b3de1b3c650c95b660ac4a17211c08c27e0..d202bafdf406c1465528cf42287d90ebec4ec8eb 100644 --- a/Demos/Device/ClassDriver/GenericHID/makefile +++ b/Demos/Device/ClassDriver/GenericHID/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -183,10 +191,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Device/ClassDriver/Joystick/makefile b/Demos/Device/ClassDriver/Joystick/makefile index e39676cf2bbf57a63c7df4cd7c3b79398b0d2987..67f4d0b473d79f2ad200f98d165873afcf8e8bca 100644 --- a/Demos/Device/ClassDriver/Joystick/makefile +++ b/Demos/Device/ClassDriver/Joystick/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -183,10 +191,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/ClassDriver/Keyboard/makefile b/Demos/Device/ClassDriver/Keyboard/makefile index 40b60fa82e7c7fe35003d98e005ecb3bf5adfe4b..4bdc241d30ba9ec0bfa4af73d69138ebf6a28b49 100644 --- a/Demos/Device/ClassDriver/Keyboard/makefile +++ b/Demos/Device/ClassDriver/Keyboard/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -183,10 +191,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Device/ClassDriver/KeyboardMouse/makefile b/Demos/Device/ClassDriver/KeyboardMouse/makefile index 4c1ce74315893989ddbf133e83e2b35163b635c3..3607f579f2425f56e8d4843b99499250fbdcd2a6 100644 --- a/Demos/Device/ClassDriver/KeyboardMouse/makefile +++ b/Demos/Device/ClassDriver/KeyboardMouse/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -183,10 +191,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/ClassDriver/MIDI/makefile b/Demos/Device/ClassDriver/MIDI/makefile index 734253e0c4b087887c1ff9a9082aa4fa016025f3..7221faf3903bd6665c1fe3197cf4ac88025d6680 100644 --- a/Demos/Device/ClassDriver/MIDI/makefile +++ b/Demos/Device/ClassDriver/MIDI/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -182,10 +190,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/ClassDriver/MassStorage/makefile b/Demos/Device/ClassDriver/MassStorage/makefile index 24b7e03bd0a8d2fcd64eb2deda43647d0e078ba6..e918e0a98903fc1ebc7293d64a226283aa45ec1a 100644 --- a/Demos/Device/ClassDriver/MassStorage/makefile +++ b/Demos/Device/ClassDriver/MassStorage/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -184,10 +192,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/ClassDriver/Mouse/makefile b/Demos/Device/ClassDriver/Mouse/makefile index 27252b9a44cb887d8823b44b11cf595681e14bfc..daa145615b7a97ba9c20f90e0cba0ae380f4c9c4 100644 --- a/Demos/Device/ClassDriver/Mouse/makefile +++ b/Demos/Device/ClassDriver/Mouse/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -183,10 +191,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Device/ClassDriver/RNDISEthernet/makefile b/Demos/Device/ClassDriver/RNDISEthernet/makefile index 70d05f8a5b74022dd248d716b9a3cb54a14209e2..ada0a13605483614a8f8d033bf3179748971d458 100644 --- a/Demos/Device/ClassDriver/RNDISEthernet/makefile +++ b/Demos/Device/ClassDriver/RNDISEthernet/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -192,11 +200,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -CDEFS += -DNO_DECODE_ETHERNET -DNO_DECODE_ARP -DNO_DECODE_ICMP -DNO_DECODE_IP -DNO_DECODE_TCP -DNO_DECODE_UDP -DNO_DECODE_DHCP +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) +CDEFS += NO_DECODE_ETHERNET -DNO_DECODE_ARP -DNO_DECODE_ICMP -DNO_DECODE_IP -DNO_DECODE_TCP -DNO_DECODE_UDP -DNO_DECODE_DHCP # Place -D or -U options here for ASM sources diff --git a/Demos/Device/ClassDriver/USBtoSerial/makefile b/Demos/Device/ClassDriver/USBtoSerial/makefile index 3c00897690a489213b73a69d26d53641f897777e..7c3aa10cce5001c4bee23ad3dbde170c1edb0e5d 100644 --- a/Demos/Device/ClassDriver/USBtoSerial/makefile +++ b/Demos/Device/ClassDriver/USBtoSerial/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -183,10 +191,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/Incomplete/Sideshow/makefile b/Demos/Device/Incomplete/Sideshow/makefile index 9ffe13f7742173ce83e78c25116e94c834c59880..5157d4f49bf8c98ea825ad317b77b112ad3f3c4f 100644 --- a/Demos/Device/Incomplete/Sideshow/makefile +++ b/Demos/Device/Incomplete/Sideshow/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -186,10 +195,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/LowLevel/AudioInput/makefile b/Demos/Device/LowLevel/AudioInput/makefile index 38a954d0f4037a6dd313693340515da6fb592d78..8ebf0494f48048bdbdc998c270c524ab8b94f41c 100644 --- a/Demos/Device/LowLevel/AudioInput/makefile +++ b/Demos/Device/LowLevel/AudioInput/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -180,10 +189,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/LowLevel/AudioOutput/makefile b/Demos/Device/LowLevel/AudioOutput/makefile index 2ef97b567c1006a73e4d03e3d5614f17daa15ac0..1401e90c3bc13a3cad7314b6818bb41dc9a0b370 100644 --- a/Demos/Device/LowLevel/AudioOutput/makefile +++ b/Demos/Device/LowLevel/AudioOutput/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -180,12 +189,10 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) CDEFS += -DAUDIO_OUT_STEREO + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Device/LowLevel/CDC/makefile b/Demos/Device/LowLevel/CDC/makefile index c8e8798d62e934a1fe8d4465a702ffb62fd3bd51..ea135975c92f83d33a8830f25e6e248f3d8ae535 100644 --- a/Demos/Device/LowLevel/CDC/makefile +++ b/Demos/Device/LowLevel/CDC/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -180,10 +189,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/LowLevel/DualCDC/makefile b/Demos/Device/LowLevel/DualCDC/makefile index 143c0be97db802bfb0fdd0653360bf0ae62b70fe..3191b60f38c4bbeeaf49af3ea7fff24338693cee 100644 --- a/Demos/Device/LowLevel/DualCDC/makefile +++ b/Demos/Device/LowLevel/DualCDC/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -180,10 +189,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/LowLevel/GenericHID/makefile b/Demos/Device/LowLevel/GenericHID/makefile index e9e90370070282758ccaf49578339591d0750f46..e53346b93207d87327f08ded938b1c0398679252 100644 --- a/Demos/Device/LowLevel/GenericHID/makefile +++ b/Demos/Device/LowLevel/GenericHID/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -180,10 +189,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Device/LowLevel/Joystick/makefile b/Demos/Device/LowLevel/Joystick/makefile index cee822c58e70700cc1bb83b5b0027ba95a682f73..a9a51d17b82026426ff0729d61dd10b3c1a8dd5b 100644 --- a/Demos/Device/LowLevel/Joystick/makefile +++ b/Demos/Device/LowLevel/Joystick/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -180,10 +189,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/LowLevel/Keyboard/makefile b/Demos/Device/LowLevel/Keyboard/makefile index 3ab9de95a9de60e0e87fde145f869387124b3a4a..a3399110dd2c755b0e7522b6ef1eec2ebbbb0f24 100644 --- a/Demos/Device/LowLevel/Keyboard/makefile +++ b/Demos/Device/LowLevel/Keyboard/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -180,10 +189,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Device/LowLevel/KeyboardMouse/makefile b/Demos/Device/LowLevel/KeyboardMouse/makefile index b93943451234be238e3f3521ac22c0b43fc8d642..7282d9fc849a26feb67e31600dbb0dfff1a24014 100644 --- a/Demos/Device/LowLevel/KeyboardMouse/makefile +++ b/Demos/Device/LowLevel/KeyboardMouse/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -180,10 +189,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/LowLevel/MIDI/makefile b/Demos/Device/LowLevel/MIDI/makefile index 51c67c86af7c62c4e765b8ac058592d32bf8c5b9..f9ff1ed834d4b5ed631480460d93251d735e59e1 100644 --- a/Demos/Device/LowLevel/MIDI/makefile +++ b/Demos/Device/LowLevel/MIDI/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -180,10 +189,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/LowLevel/MassStorage/makefile b/Demos/Device/LowLevel/MassStorage/makefile index 77993d04af45fb4538aa21277ec63128a1724f62..e23014680bbd551d851cdc9975b617ab0da171c8 100644 --- a/Demos/Device/LowLevel/MassStorage/makefile +++ b/Demos/Device/LowLevel/MassStorage/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +LUFA_OPTS += INTERRUPT_CONTROL_ENDPOINT + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -182,11 +191,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -CDEFS += -DINTERRUPT_CONTROL_ENDPOINT +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Device/LowLevel/Mouse/makefile b/Demos/Device/LowLevel/Mouse/makefile index 314148a14d11bf205d48bb6d7e3bcb8360938714..49126802d6321c2a5cd0bf3fa70f0b798fd8ba1f 100644 --- a/Demos/Device/LowLevel/Mouse/makefile +++ b/Demos/Device/LowLevel/Mouse/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -179,10 +188,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Device/LowLevel/RNDISEthernet/makefile b/Demos/Device/LowLevel/RNDISEthernet/makefile index 584cba90caad1b8c2d0c85b3b25a56727cbf2d06..e17c734456e4e2f1eecdaa25cd93deb8e42b7198 100644 --- a/Demos/Device/LowLevel/RNDISEthernet/makefile +++ b/Demos/Device/LowLevel/RNDISEthernet/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -192,11 +201,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -CDEFS += -DNO_DECODE_ETHERNET -DNO_DECODE_ARP -DNO_DECODE_ICMP -DNO_DECODE_IP -DNO_DECODE_TCP -DNO_DECODE_UDP -DNO_DECODE_DHCP +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) +CDEFS += NO_DECODE_ETHERNET -DNO_DECODE_ARP -DNO_DECODE_ICMP -DNO_DECODE_IP -DNO_DECODE_TCP -DNO_DECODE_UDP -DNO_DECODE_DHCP # Place -D or -U options here for ASM sources diff --git a/Demos/Device/LowLevel/USBtoSerial/makefile b/Demos/Device/LowLevel/USBtoSerial/makefile index f1491a52a1c7091415ae556fae94bc45ba5e3082..ff46809e4ad413c896eccc9d6422cf3af3d67684 100644 --- a/Demos/Device/LowLevel/USBtoSerial/makefile +++ b/Demos/Device/LowLevel/USBtoSerial/makefile @@ -122,6 +122,15 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -181,10 +190,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/ClassDriver/CDCHost/makefile b/Demos/Host/ClassDriver/CDCHost/makefile index 94fdae68176fe0cf0b61c93a82cdbb8119db02b4..59e79539486f6c2448045d329c723cab53be94bd 100644 --- a/Demos/Host/ClassDriver/CDCHost/makefile +++ b/Demos/Host/ClassDriver/CDCHost/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ $(LUFA_PATH)/LUFA/Drivers/Peripheral/SerialStream.c \ @@ -183,9 +190,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_HOST_ONLY -DNO_STREAM_CALLBACKS -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/ClassDriver/GenericHIDHost/makefile b/Demos/Host/ClassDriver/GenericHIDHost/makefile index b41d93597a95f75a64adbef093058ce476a2893a..fa993051dad972433fda645663577a1f4d37afd6 100644 --- a/Demos/Host/ClassDriver/GenericHIDHost/makefile +++ b/Demos/Host/ClassDriver/GenericHIDHost/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ $(LUFA_PATH)/LUFA/Drivers/Peripheral/SerialStream.c \ @@ -184,9 +191,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Host/ClassDriver/KeyboardHost/makefile b/Demos/Host/ClassDriver/KeyboardHost/makefile index a30c145baa43536fcea9623fca54d898a2897e21..be9a8cadcd9654ddc0215c4d7a667bbbbde1e7da 100644 --- a/Demos/Host/ClassDriver/KeyboardHost/makefile +++ b/Demos/Host/ClassDriver/KeyboardHost/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ $(LUFA_PATH)/LUFA/Drivers/Peripheral/SerialStream.c \ @@ -183,9 +190,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_HOST_ONLY -DNO_STREAM_CALLBACKS -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile b/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile index 41e15fa83a108f2b23f18e93508f136205120b12..4b9aa454a217219cf821d93d60e2804c1a8a4111 100644 --- a/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile +++ b/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ HIDReport.c \ @@ -185,9 +192,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_HOST_ONLY -DNO_STREAM_CALLBACKS -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/ClassDriver/MassStorageHost/makefile b/Demos/Host/ClassDriver/MassStorageHost/makefile index 5adf3ca2998500b2a80bcec8f97fb800adc43c5a..f9234f4162bba6ba34be366adeb5f2d65fccc3cc 100644 --- a/Demos/Host/ClassDriver/MassStorageHost/makefile +++ b/Demos/Host/ClassDriver/MassStorageHost/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +LUFA_OPTS += USB_STREAM_TIMEOUT_MS=2000 + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Lib/MassStoreCommands.c \ @@ -184,10 +192,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -CDEFS += -DUSB_STREAM_TIMEOUT_MS=2000 +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/ClassDriver/MouseHost/makefile b/Demos/Host/ClassDriver/MouseHost/makefile index 367ad9fb4b309362fd54dee17e6fd83431e262a2..be9e9d7cacd88fd5d1e48fb158020f0a6d3faa53 100644 --- a/Demos/Host/ClassDriver/MouseHost/makefile +++ b/Demos/Host/ClassDriver/MouseHost/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ $(LUFA_PATH)/LUFA/Drivers/Peripheral/SerialStream.c \ @@ -184,9 +191,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Host/ClassDriver/MouseHostWithParser/makefile b/Demos/Host/ClassDriver/MouseHostWithParser/makefile index 5c31fce9aded82f50d18ab5986941e9ca6994953..c5f81e208e609f66df5b22aeab606e36bab9d97a 100644 --- a/Demos/Host/ClassDriver/MouseHostWithParser/makefile +++ b/Demos/Host/ClassDriver/MouseHostWithParser/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ HIDReport.c \ @@ -185,9 +192,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/ClassDriver/StillImageHost/makefile b/Demos/Host/ClassDriver/StillImageHost/makefile index 4c0181b23549160adf0aaae9d7dee9b6ebb03855..c1cedd87012680f69d7dd711fe6d7ceb0b130e60 100644 --- a/Demos/Host/ClassDriver/StillImageHost/makefile +++ b/Demos/Host/ClassDriver/StillImageHost/makefile @@ -121,6 +121,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Lib/StillImageCommands.c \ @@ -181,9 +188,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/Incomplete/BluetoothHost/makefile b/Demos/Host/Incomplete/BluetoothHost/makefile index f24f6ffd96c3cac12be00bc79b54c94f10f2c7cd..86bdd04057698cc450e36784688696488e493243 100644 --- a/Demos/Host/Incomplete/BluetoothHost/makefile +++ b/Demos/Host/Incomplete/BluetoothHost/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ DeviceDescriptor.c \ @@ -186,9 +193,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_HOST_ONLY -DNO_STREAM_CALLBACKS -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/LowLevel/CDCHost/makefile b/Demos/Host/LowLevel/CDCHost/makefile index dfbefbb80048e632d275cf61eca9ac3e060a9fdb..de217dff832da7197268f232dd898f9dbfb57095 100644 --- a/Demos/Host/LowLevel/CDCHost/makefile +++ b/Demos/Host/LowLevel/CDCHost/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ ConfigDescriptor.c \ @@ -182,9 +189,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_HOST_ONLY -DNO_STREAM_CALLBACKS -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/LowLevel/GenericHIDHost/makefile b/Demos/Host/LowLevel/GenericHIDHost/makefile index a07acb438911f5eeaa5b6c908727528e46937a4c..a117578a3f8a07b83ea46b67fc90d094069d8b09 100644 --- a/Demos/Host/LowLevel/GenericHIDHost/makefile +++ b/Demos/Host/LowLevel/GenericHIDHost/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ ConfigDescriptor.c \ @@ -183,9 +190,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Host/LowLevel/KeyboardHost/makefile b/Demos/Host/LowLevel/KeyboardHost/makefile index 6e005da0a79d5eec1f34d97a54fb72821a19821f..ef77810ff54e7c79794135cdbbdb21b970dcd3e5 100644 --- a/Demos/Host/LowLevel/KeyboardHost/makefile +++ b/Demos/Host/LowLevel/KeyboardHost/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ ConfigDescriptor.c \ @@ -182,9 +189,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_HOST_ONLY -DNO_STREAM_CALLBACKS -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/LowLevel/KeyboardHostWithParser/makefile b/Demos/Host/LowLevel/KeyboardHostWithParser/makefile index 393551268e15eb971fa1de29394fab42c219d5d3..faf8910f6b3437e5253dd1d2014b0bc163f78954 100644 --- a/Demos/Host/LowLevel/KeyboardHostWithParser/makefile +++ b/Demos/Host/LowLevel/KeyboardHostWithParser/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ ConfigDescriptor.c \ @@ -184,9 +191,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_HOST_ONLY -DNO_STREAM_CALLBACKS -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/LowLevel/MassStorageHost/makefile b/Demos/Host/LowLevel/MassStorageHost/makefile index 709f42f6173eb9abc4f57b3acc59926148eab01c..f236eed2b694182ccb48dfc6578d5c0779441778 100644 --- a/Demos/Host/LowLevel/MassStorageHost/makefile +++ b/Demos/Host/LowLevel/MassStorageHost/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +LUFA_OPTS += USB_STREAM_TIMEOUT_MS=2000 + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ ConfigDescriptor.c \ @@ -183,10 +191,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -CDEFS += -DUSB_STREAM_TIMEOUT_MS=2000 +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/LowLevel/MouseHost/makefile b/Demos/Host/LowLevel/MouseHost/makefile index 67e05a63ade3ff326ffba6522a0634c9bb8222e3..f62697dad94b0d5cd58cf1946ba887a45984bc07 100644 --- a/Demos/Host/LowLevel/MouseHost/makefile +++ b/Demos/Host/LowLevel/MouseHost/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ ConfigDescriptor.c \ @@ -182,9 +189,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU) diff --git a/Demos/Host/LowLevel/MouseHostWithParser/makefile b/Demos/Host/LowLevel/MouseHostWithParser/makefile index 30e40ad45a3f2c968ff29f01a322866264c25396..caf20df613740edf4440dd5a5db60c251edcd59e 100644 --- a/Demos/Host/LowLevel/MouseHostWithParser/makefile +++ b/Demos/Host/LowLevel/MouseHostWithParser/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ ConfigDescriptor.c \ @@ -184,9 +191,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/Host/LowLevel/StillImageHost/makefile b/Demos/Host/LowLevel/StillImageHost/makefile index a4428c56563343bbf78a57ceb86fc5a3ba13f1d6..96eca4258d06c3026a984435c488e51d66bf52c9 100644 --- a/Demos/Host/LowLevel/StillImageHost/makefile +++ b/Demos/Host/LowLevel/StillImageHost/makefile @@ -121,6 +121,13 @@ OBJDIR = . LUFA_PATH = ../../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ ConfigDescriptor.c \ @@ -182,9 +189,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/Demos/OTG/TestApp/makefile b/Demos/OTG/TestApp/makefile index 55b98815aa003678661262492b494f255508e008..b5c50bb6177a540e00219fde82491493d437c096 100644 --- a/Demos/OTG/TestApp/makefile +++ b/Demos/OTG/TestApp/makefile @@ -122,6 +122,10 @@ OBJDIR = . LUFA_PATH = ../../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ TestEvents.c \ @@ -184,8 +188,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) # Place -D or -U options here for ASM sources diff --git a/LUFA/ManPages/FutureChanges.txt b/LUFA/ManPages/FutureChanges.txt index 35411f2ab1b43ebe0ad821472ef96c5e92c6749b..53f9b3ae0c6b79bf3f4e764157dd5c00f462e4ee 100644 --- a/LUFA/ManPages/FutureChanges.txt +++ b/LUFA/ManPages/FutureChanges.txt @@ -22,5 +22,5 @@ * - Remake AVRStudio project files * - Master LUFA include file * - Debug mode for pipe/endpoint calls - * - Add hub support to match Atmel's stack (thanks to the Atmel engineer who said it wasn't possible :P) + * - Add hub support to match Atmel's stack */ diff --git a/LUFA/ManPages/MigrationInformation.txt b/LUFA/ManPages/MigrationInformation.txt index d46ddd02bc9aaa14fa8221397f04101e38f0c4f9..f1b5f55ce6c31b39f74084523cf54dab52c1e271 100644 --- a/LUFA/ManPages/MigrationInformation.txt +++ b/LUFA/ManPages/MigrationInformation.txt @@ -13,14 +13,15 @@ * \section Sec_MigrationXXXXXX Migrating from 090605 to XXXXXX * * <b>All</b> - * - The "Simple Scheduler" has been <i>deprecated</i>, as it was little more than an abtracted loop and caused much confusion. User - * applications using the scheduler should switch to regular loops instead. The scheduler code will be removed in a future + * - The "Simple Scheduler" has been <i>deprecated</i>, as it was little more than an abtracted loop and caused much confusion. + * User applications using the scheduler should switch to regular loops instead. The scheduler code will be removed in a future * release. * - The "Dynamic Memory Block Allocator" has been removed, as it was unused in (and unrelated to) the LUFA library and never * used in user applications. The library is available from the author's website for those wishing to still use it in their * applications. * * <b>Host Mode</b> + * - The HIDParser.c module has moved from LUFA/Drivers/USB/Class/ to LUFA/Drivers/USB/Class/Host/. * - The USB_GetDeviceConfigDescriptor() function now requires the desired configuration index within the device as its first * parameter, to add support for multi-configuration devices. Existing code should use a configuration index of 1 to indicate the * first configuration descriptor within the device. diff --git a/Projects/Magstripe/makefile b/Projects/Magstripe/makefile index b81f9f1561599b35c5a32a4848ff4d6584a928fe..edea3ceff615bc055e78a4a80eba3eaf636e50e1 100644 --- a/Projects/Magstripe/makefile +++ b/Projects/Magstripe/makefile @@ -122,6 +122,14 @@ OBJDIR = . LUFA_PATH = ../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += USB_DEVICE_ONLY +LUFA_OPTS += FIXED_CONTROL_ENDPOINT_SIZE=8 +LUFA_OPTS += USE_SINGLE_DEVICE_CONFIGURATION +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ Descriptors.c \ @@ -183,10 +191,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DUSB_DEVICE_ONLY -CDEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DUSE_SINGLE_DEVICE_CONFIGURATION -CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) CDEFS += -DMAG_T1_CLOCK="(1 << 0)" CDEFS += -DMAG_T1_DATA="(1 << 1)" CDEFS += -DMAG_T2_CLOCK="(1 << 2)" diff --git a/Projects/MissileLauncher/makefile b/Projects/MissileLauncher/makefile index 045266a443dd7e2fc0700e881abddb1bca720559..91482c6b2a70ede589a3cd3df831e2cd251c7852 100644 --- a/Projects/MissileLauncher/makefile +++ b/Projects/MissileLauncher/makefile @@ -122,6 +122,13 @@ OBJDIR = . LUFA_PATH = ../.. +# LUFA library compile-time options +LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS += NO_STREAM_CALLBACKS +LUFA_OPTS += USB_HOST_ONLY +LUFA_OPTS += USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" + + # List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c \ ConfigDescriptor.c \ @@ -183,9 +190,8 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) -CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_HOST_ONLY -CDEFS += -DUSE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) + # Place -D or -U options here for ASM sources ADEFS = -DF_CPU=$(F_CPU)