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