]> git.gir.st - tmk_keyboard.git/blob - protocol/lufa.mk
Fix LUFA descriptor of Extra for Windows
[tmk_keyboard.git] / protocol / lufa.mk
1 LUFA_DIR = protocol/lufa
2
3 # Path to the LUFA library
4 LUFA_PATH = $(TOP_DIR)/protocol/lufa/LUFA-120219
5
6 # Create the LUFA source path variables by including the LUFA root makefile
7 include $(LUFA_PATH)/LUFA/makefile
8
9 LUFA_SRC = $(LUFA_DIR)/lufa.c \
10 $(LUFA_DIR)/descriptor.c \
11 $(LUFA_SRC_USB)
12 SRC += $(subst $(LUFA_PATH)/,,$(LUFA_SRC))
13
14 # Search Path
15 VPATH += $(LUFA_PATH)
16
17 # Option modules
18 #ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)
19 #endif
20
21 #ifdef EXTRAKEY_ENABLE
22 #endif
23
24 # LUFA library compile-time options and predefined tokens
25 LUFA_OPTS = -D USB_DEVICE_ONLY
26 LUFA_OPTS += -D FIXED_CONTROL_ENDPOINT_SIZE=8
27 LUFA_OPTS += -D FIXED_NUM_CONFIGURATIONS=1
28 LUFA_OPTS += -D USE_FLASH_DESCRIPTORS
29 LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
30
31 OPT_DEFS += -DF_USB=$(F_USB)UL
32 OPT_DEFS += -DARCH=ARCH_$(ARCH)
33 OPT_DEFS += $(LUFA_OPTS)
34 OPT_DEFS += -DHOST_LUFA
Imprint / Impressum