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.8KB

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