Keyboard firmwares for Atmel AVR and Cortex-M
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #----------------------------------------------------------------------------
  2. # On command line:
  3. #
  4. # make all = Make software.
  5. #
  6. # make clean = Clean out built project files.
  7. #
  8. # make coff = Convert ELF to AVR COFF.
  9. #
  10. # make extcoff = Convert ELF to AVR Extended COFF.
  11. #
  12. # make program = Download the hex file to the device.
  13. # Please customize your programmer settings(PROGRAM_CMD)
  14. #
  15. # make teensy = Download the hex file to the device, using teensy_loader_cli.
  16. # (must have teensy_loader_cli installed).
  17. #
  18. # make dfu = Download the hex file to the device, using dfu-programmer (must
  19. # have dfu-programmer installed).
  20. #
  21. # make flip = Download the hex file to the device, using Atmel FLIP (must
  22. # have Atmel FLIP installed).
  23. #
  24. # make dfu-ee = Download the eeprom file to the device, using dfu-programmer
  25. # (must have dfu-programmer installed).
  26. #
  27. # make flip-ee = Download the eeprom file to the device, using Atmel FLIP
  28. # (must have Atmel FLIP installed).
  29. #
  30. # make debug = Start either simulavr or avarice as specified for debugging,
  31. # with avr-gdb or avr-insight as the front end for debugging.
  32. #
  33. # make filename.s = Just compile filename.c into the assembler code only.
  34. #
  35. # make filename.i = Create a preprocessed source file for use in submitting
  36. # bug reports to the GCC project.
  37. #
  38. # To rebuild project do "make clean" then "make all".
  39. #----------------------------------------------------------------------------
  40. # Target file name (without extension).
  41. TARGET = gh60_pjrc
  42. # Directory common source filess exist
  43. TOP_DIR = ../..
  44. # Directory keyboard dependent files exist
  45. TARGET_DIR = .
  46. # project specific files
  47. SRC = keymap.c \
  48. matrix.c \
  49. led.c
  50. CONFIG_H = config.h
  51. # MCU name, you MUST set this to match the board you are using
  52. # type "make clean" after changing this, so all files will be rebuilt
  53. MCU = atmega32u4
  54. #MCU = at90usb1286
  55. # Processor frequency.
  56. # Normally the first thing your program should do is set the clock prescaler,
  57. # so your program will run at the correct speed. You should also set this
  58. # variable to same clock speed. The _delay_ms() macro uses this, and many
  59. # examples use this variable to calculate timings. Do not add a "UL" here.
  60. F_CPU = 16000000
  61. # Boot Section Size in bytes
  62. # Teensy halfKay 512
  63. # Atmel DFU loader 4096
  64. # LUFA bootloader 4096
  65. OPT_DEFS += -DBOOT_SIZE=4096
  66. # Build Options
  67. # comment out to disable the options.
  68. #
  69. BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
  70. MOUSEKEY_ENABLE = yes # Mouse keys(+5000)
  71. EXTRAKEY_ENABLE = yes # Audio control and System control(+600)
  72. CONSOLE_ENABLE = yes # Console for debug
  73. COMMAND_ENABLE = yes # Commands for debug and configuration
  74. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  75. NKRO_ENABLE = yes # USB Nkey Rollover(+500)
  76. #PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support
  77. # Search Path
  78. VPATH += $(TARGET_DIR)
  79. VPATH += $(TOP_DIR)
  80. include $(TOP_DIR)/protocol/pjrc.mk
  81. include $(TOP_DIR)/common.mk
  82. include $(TOP_DIR)/rules.mk
  83. plain: OPT_DEFS += -DKEYMAP_PLAIN
  84. plain: all
  85. poker: OPT_DEFS += -DKEYMAP_POKER
  86. poker: all
  87. poker_set: OPT_DEFS += -DKEYMAP_POKER_SET
  88. poker_set: all
  89. poker_bit: OPT_DEFS += -DKEYMAP_POKER_BIT
  90. poker_bit: all