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.

преди 9 години
преди 11 години
преди 11 години
преди 11 години
преди 13 години
преди 11 години
преди 13 години
преди 13 години
преди 13 години
преди 12 години
преди 11 години
преди 12 години
преди 12 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # Target file name (without extension).
  2. TARGET = ps2_usb_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_common.c \
  9. matrix.c \
  10. led.c
  11. ifdef KEYMAP
  12. SRC := keymap_$(KEYMAP).c $(SRC)
  13. else
  14. SRC := keymap_plain.c $(SRC)
  15. endif
  16. # Use USART for PS/2. With V-USB INT and BUSYWAIT code is not useful.
  17. SRC += protocol/ps2_usart.c
  18. OPT_DEFS += -DPS2_USE_USART
  19. CONFIG_H = config.h
  20. # V-USB debug level: To use ps2_usart.c level must be 0
  21. # ps2_usart.c requires USART to receive PS/2 signal.
  22. OPT_DEFS += -DDEBUG_LEVEL=0
  23. # MCU name, you MUST set this to match the board you are using
  24. # type "make clean" after changing this, so all files will be rebuilt
  25. #MCU = at90usb162 # Teensy 1.0
  26. #MCU = atmega32u4 # Teensy 2.0
  27. #MCU = at90usb646 # Teensy++ 1.0
  28. #MCU = at90usb1286 # Teensy++ 2.0
  29. MCU = atmega168
  30. # Processor frequency.
  31. # Normally the first thing your program should do is set the clock prescaler,
  32. # so your program will run at the correct speed. You should also set this
  33. # variable to same clock speed. The _delay_ms() macro uses this, and many
  34. # examples use this variable to calculate timings. Do not add a "UL" here.
  35. F_CPU = 20000000
  36. # Build Options
  37. # comment out to disable the options.
  38. #
  39. MOUSEKEY_ENABLE = yes # Mouse keys
  40. EXTRAKEY_ENABLE = yes # Audio control and System control
  41. #NKRO_ENABLE = yes # USB Nkey Rollover
  42. NO_UART = yes # UART is unavailable
  43. #---------------- Programming Options --------------------------
  44. AVRDUDE = avrdude
  45. # Type: avrdude -c ? to get a full listing.
  46. AVRDUDE_PROGRAMMER = usbasp
  47. AVRDUDE_PORT =
  48. AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
  49. #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
  50. # Uncomment the following if you want avrdude's erase cycle counter.
  51. # Note that this counter needs to be initialized first using -Yn,
  52. # see avrdude manual.
  53. #AVRDUDE_ERASE_COUNTER = -y
  54. # Uncomment the following if you do /not/ wish a verification to be
  55. # performed after programming the device.
  56. #AVRDUDE_NO_VERIFY = -V
  57. # Increase verbosity level. Please use this when submitting bug
  58. # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
  59. # to submit bug reports.
  60. #AVRDUDE_VERBOSE = -v -v
  61. #AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
  62. AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER)
  63. AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
  64. AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
  65. AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
  66. PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
  67. # Boot Section Size in bytes
  68. # Teensy halfKay 512
  69. # Atmel DFU loader 4096
  70. # LUFA bootloader 4096
  71. # USBasp 2048
  72. OPT_DEFS += -DBOOTLOADER_SIZE=2048
  73. # Search Path
  74. VPATH += $(TARGET_DIR)
  75. VPATH += $(TMK_DIR)
  76. include $(TMK_DIR)/protocol.mk
  77. include $(TMK_DIR)/common.mk
  78. include $(TMK_DIR)/protocol/vusb.mk
  79. include $(TMK_DIR)/rules.mk