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.

Makefile.vusb 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # Target file name (without extension).
  2. TARGET = onekey_vusb
  3. # Directory common source filess exist
  4. TMK_DIR = ../../tmk_core
  5. # Directory keyboard dependent files exist
  6. TARGET_DIR = .
  7. # keyboard dependent files
  8. SRC = keymap.c \
  9. matrix.c \
  10. led.c
  11. CONFIG_H = config.h
  12. # MCU name, you MUST set this to match the board you are using
  13. # type "make clean" after changing this, so all files will be rebuilt
  14. #MCU = atmega168p
  15. MCU = atmega328p
  16. # Processor frequency.
  17. # Normally the first thing your program should do is set the clock prescaler,
  18. # so your program will run at the correct speed. You should also set this
  19. # variable to same clock speed. The _delay_ms() macro uses this, and many
  20. # examples use this variable to calculate timings. Do not add a "UL" here.
  21. F_CPU = 12000000
  22. # Build Options
  23. # comment out to disable the options.
  24. #
  25. #MOUSEKEY_ENABLE = yes # Mouse keys
  26. #EXTRAKEY_ENABLE = yes # Audio control and System control
  27. #NKRO_ENABLE = yes # USB Nkey Rollover
  28. #---------------- Programming Options --------------------------
  29. AVRDUDE = avrdude
  30. # Type: avrdude -c ? to get a full listing.
  31. AVRDUDE_PROGRAMMER = usbasp
  32. AVRDUDE_PORT =
  33. AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
  34. #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
  35. # Uncomment the following if you want avrdude's erase cycle counter.
  36. # Note that this counter needs to be initialized first using -Yn,
  37. # see avrdude manual.
  38. #AVRDUDE_ERASE_COUNTER = -y
  39. # Uncomment the following if you do /not/ wish a verification to be
  40. # performed after programming the device.
  41. #AVRDUDE_NO_VERIFY = -V
  42. # Increase verbosity level. Please use this when submitting bug
  43. # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
  44. # to submit bug reports.
  45. #AVRDUDE_VERBOSE = -v -v
  46. #AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
  47. AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER)
  48. AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
  49. AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
  50. AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
  51. PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
  52. # Boot Section Size in bytes
  53. # Teensy halfKay 512
  54. # Atmel DFU loader 4096
  55. # LUFA bootloader 4096
  56. # USBasp 2048
  57. OPT_DEFS += -DBOOTLOADER_SIZE=2048
  58. # Search Path
  59. VPATH += $(TARGET_DIR)
  60. VPATH += $(TMK_DIR)
  61. include $(TMK_DIR)/protocol.mk
  62. include $(TMK_DIR)/common.mk
  63. include $(TMK_DIR)/protocol/vusb.mk
  64. include $(TMK_DIR)/rules.mk