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.tmk_rev1 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #
  2. # Makefile for TMK keyboard converter rev2
  3. # https://github.com/tmk/keyboard_converter#pcb-rev1
  4. #
  5. # Target file name (without extension).
  6. TARGET = ps2_usb_tmk_rev1
  7. # Directory common source filess exist
  8. TMK_DIR = ../../tmk_core
  9. # Directory keyboard dependent files exist
  10. TARGET_DIR = .
  11. # project specific files
  12. SRC = keymap_common.c \
  13. matrix.c \
  14. led.c
  15. ifdef KEYMAP
  16. SRC := keymap_$(KEYMAP).c $(SRC)
  17. else
  18. SRC := keymap_plain.c $(SRC)
  19. endif
  20. CONFIG_H = config_tmk_rev1.h
  21. # MCU name
  22. MCU = atmega32u4
  23. # Processor frequency.
  24. # This will define a symbol, F_CPU, in all source code files equal to the
  25. # processor frequency in Hz. You can then use this symbol in your source code to
  26. # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
  27. # automatically to create a 32-bit value in your source code.
  28. #
  29. # This will be an integer division of F_USB below, as it is sourced by
  30. # F_USB after it has run through any CPU prescalers. Note that this value
  31. # does not *change* the processor frequency - it should merely be updated to
  32. # reflect the processor speed set externally so that the code can use accurate
  33. # software delays.
  34. F_CPU = 16000000
  35. #
  36. # LUFA specific
  37. #
  38. # Target architecture (see library "Board Types" documentation).
  39. ARCH = AVR8
  40. # Input clock frequency.
  41. # This will define a symbol, F_USB, in all source code files equal to the
  42. # input clock frequency (before any prescaling is performed) in Hz. This value may
  43. # differ from F_CPU if prescaling is used on the latter, and is required as the
  44. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  45. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  46. # at the end, this will be done automatically to create a 32-bit value in your
  47. # source code.
  48. #
  49. # If no clock division is performed on the input clock inside the AVR (via the
  50. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  51. F_USB = $(F_CPU)
  52. # Boot Section Size in *bytes*
  53. # Teensy halfKay 512
  54. # Teensy++ halfKay 1024
  55. # Atmel DFU loader 4096
  56. # LUFA bootloader 4096
  57. # USBaspLoader 2048
  58. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  59. # Build Options
  60. # comment out to disable the options.
  61. #
  62. #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
  63. MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
  64. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  65. CONSOLE_ENABLE = yes # Console for debug(+400)
  66. COMMAND_ENABLE = yes # Commands for debug and configuration
  67. #NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
  68. # PS/2 Options
  69. #
  70. PS2_USE_USART = yes # uses hardware USART engine for PS/2 signal receive(recomened)
  71. #PS2_USE_BUSYWAIT = yes # uses primitive reference code
  72. # Search Path
  73. VPATH += $(TARGET_DIR)
  74. VPATH += $(TMK_DIR)
  75. include $(TMK_DIR)/protocol.mk
  76. include $(TMK_DIR)/protocol/lufa.mk
  77. include $(TMK_DIR)/common.mk
  78. include $(TMK_DIR)/rules.mk