Keyboard firmwares for Atmel AVR and Cortex-M
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.

lufa.mk 937B

123456789101112131415161718192021222324252627282930313233343536
  1. LUFA_DIR = protocol/lufa
  2. # Path to the LUFA library
  3. LUFA_PATH = protocol/lufa/LUFA-120219
  4. # Create the LUFA source path variables by including the LUFA root makefile
  5. include $(TOP_DIR)/$(LUFA_PATH)/LUFA/makefile
  6. LUFA_SRC = $(LUFA_DIR)/lufa.c \
  7. $(LUFA_DIR)/descriptor.c \
  8. $(LUFA_SRC_USB)
  9. SRC += $(LUFA_SRC)
  10. # Search Path
  11. VPATH += $(TOP_DIR)/$(LUFA_DIR)
  12. VPATH += $(TOP_DIR)/$(LUFA_PATH)
  13. # Option modules
  14. #ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)
  15. #endif
  16. #ifdef EXTRAKEY_ENABLE
  17. #endif
  18. # LUFA library compile-time options and predefined tokens
  19. LUFA_OPTS = -D USB_DEVICE_ONLY
  20. LUFA_OPTS += -D FIXED_CONTROL_ENDPOINT_SIZE=8
  21. LUFA_OPTS += -D FIXED_NUM_CONFIGURATIONS=1
  22. LUFA_OPTS += -D USE_FLASH_DESCRIPTORS
  23. LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
  24. OPT_DEFS += -DF_USB=$(F_USB)UL
  25. OPT_DEFS += -DARCH=ARCH_$(ARCH)
  26. OPT_DEFS += $(LUFA_OPTS)
  27. OPT_DEFS += -DHOST_LUFA