1 LUFA_DIR
= protocol
/lufa
3 # Path to the LUFA library
4 LUFA_PATH ?
= protocol
/lufa
/LUFA-120730
6 # Create the LUFA source path variables by including the LUFA makefile
7 ifneq (, $(wildcard $(TOP_DIR
)/$(LUFA_PATH
)/LUFA
/Build
/lufa_sources.mk
))
8 # New build system from 20120730
9 LUFA_ROOT_PATH
= $(LUFA_PATH
)/LUFA
10 include $(TOP_DIR
)/$(LUFA_PATH
)/LUFA
/Build
/lufa_sources.mk
12 include $(TOP_DIR
)/$(LUFA_PATH
)/LUFA
/makefile
15 LUFA_SRC
= $(LUFA_DIR
)/lufa.c \
16 $(LUFA_DIR
)/descriptor.c \
22 VPATH
+= $(TOP_DIR
)/$(LUFA_DIR
)
23 VPATH
+= $(TOP_DIR
)/$(LUFA_PATH
)
26 #ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)
29 #ifdef EXTRAKEY_ENABLE
32 # LUFA library compile-time options and predefined tokens
33 LUFA_OPTS
= -D USB_DEVICE_ONLY
34 LUFA_OPTS
+= -D FIXED_CONTROL_ENDPOINT_SIZE
=8
35 LUFA_OPTS
+= -D FIXED_NUM_CONFIGURATIONS
=1
36 LUFA_OPTS
+= -D USE_FLASH_DESCRIPTORS
37 LUFA_OPTS
+= -D USE_STATIC_OPTIONS
="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
39 OPT_DEFS
+= -DF_USB
=$(F_USB
)UL
40 OPT_DEFS
+= -DARCH
=ARCH_
$(ARCH
)
41 OPT_DEFS
+= $(LUFA_OPTS
)
43 # This indicates using LUFA stack
44 OPT_DEFS
+= -DPROTOCOL_LUFA