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 917B

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