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

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