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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

Makefile.vusb 2.7KB

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