You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. LUFA_DIR = protocol/lufa
  2. # Path to the LUFA library
  3. LUFA_PATH ?= protocol/lufa/LUFA-120730
  4. # Create the LUFA source path variables by including the LUFA makefile
  5. ifneq (, $(wildcard $(TOP_DIR)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk))
  6. # New build system from 20120730
  7. LUFA_ROOT_PATH = $(LUFA_PATH)/LUFA
  8. include $(TOP_DIR)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk
  9. else
  10. include $(TOP_DIR)/$(LUFA_PATH)/LUFA/makefile
  11. endif
  12. LUFA_SRC = $(LUFA_DIR)/lufa.c \
  13. $(LUFA_DIR)/descriptor.c \
  14. $(LUFA_SRC_USB)
  15. SRC += $(LUFA_SRC)
  16. # Search Path
  17. VPATH += $(TOP_DIR)/$(LUFA_DIR)
  18. VPATH += $(TOP_DIR)/$(LUFA_PATH)
  19. # Option modules
  20. #ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)
  21. #endif
  22. #ifdef EXTRAKEY_ENABLE
  23. #endif
  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. OPT_DEFS += -DF_USB=$(F_USB)UL
  31. OPT_DEFS += -DARCH=ARCH_$(ARCH)
  32. OPT_DEFS += $(LUFA_OPTS)
  33. OPT_DEFS += -DHOST_LUFA