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.pjrc 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Target file name (without extension).
  2. TARGET = ps2_usb_pjrc
  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. CONFIG_H = config.h
  17. # MCU name, you MUST set this to match the board you are using
  18. # type "make clean" after changing this, so all files will be rebuilt
  19. #MCU = at90usb162 # Teensy 1.0
  20. MCU = atmega32u4 # Teensy 2.0
  21. #MCU = at90usb646 # Teensy++ 1.0
  22. #MCU = at90usb1286 # Teensy++ 2.0
  23. # Processor frequency.
  24. # Normally the first thing your program should do is set the clock prescaler,
  25. # so your program will run at the correct speed. You should also set this
  26. # variable to same clock speed. The _delay_ms() macro uses this, and many
  27. # examples use this variable to calculate timings. Do not add a "UL" here.
  28. F_CPU = 16000000
  29. # Boot Section Size in *bytes*
  30. # Teensy halfKay 512
  31. # Teensy++ halfKay 1024
  32. # Atmel DFU loader 4096
  33. # LUFA bootloader 4096
  34. # USBaspLoader 2048
  35. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  36. # Build Options
  37. # *Comment out* to disable the options.
  38. #
  39. #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
  40. MOUSEKEY_ENABLE = yes # Mouse keys
  41. EXTRAKEY_ENABLE = yes # Audio control and System control
  42. CONSOLE_ENABLE = yes # Console for debug(+400)
  43. COMMAND_ENABLE = yes # Commands for debug and configuration
  44. NKRO_ENABLE = yes # USB Nkey Rollover
  45. # PS/2 Options
  46. #
  47. #PS2_USE_USART = yes # uses hardware USART engine for PS/2 signal receive(recomened)
  48. #PS2_USE_INT = yes # uses external interrupt for falling edge of PS/2 clock pin
  49. PS2_USE_BUSYWAIT = yes # uses primitive reference code
  50. # Search Path
  51. VPATH += $(TARGET_DIR)
  52. VPATH += $(TMK_DIR)
  53. include $(TMK_DIR)/protocol.mk
  54. include $(TMK_DIR)/protocol/pjrc.mk
  55. include $(TMK_DIR)/common.mk
  56. include $(TMK_DIR)/rules.mk