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 3.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # Target file name (without extension).
  2. TARGET = terminal_lufa
  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.c \
  9. matrix.c \
  10. led.c
  11. CONFIG_H = config.h
  12. # MCU name, you MUST set this to match the board you are using
  13. # type "make clean" after changing this, so all files will be rebuilt
  14. #MCU = at90usb162 # Teensy 1.0
  15. MCU = atmega32u4 # Teensy 2.0
  16. #MCU = at90usb646 # Teensy++ 1.0
  17. #MCU = at90usb1286 # Teensy++ 2.0
  18. # Processor frequency.
  19. # Normally the first thing your program should do is set the clock prescaler,
  20. # so your program will run at the correct speed. You should also set this
  21. # variable to same clock speed. The _delay_ms() macro uses this, and many
  22. # examples use this variable to calculate timings. Do not add a "UL" here.
  23. F_CPU = 16000000
  24. #
  25. # LUFA specific
  26. #
  27. # Target architecture (see library "Board Types" documentation).
  28. ARCH = AVR8
  29. # Input clock frequency.
  30. # This will define a symbol, F_USB, in all source code files equal to the
  31. # input clock frequency (before any prescaling is performed) in Hz. This value may
  32. # differ from F_CPU if prescaling is used on the latter, and is required as the
  33. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  34. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  35. # at the end, this will be done automatically to create a 32-bit value in your
  36. # source code.
  37. #
  38. # If no clock division is performed on the input clock inside the AVR (via the
  39. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  40. F_USB = $(F_CPU)
  41. # Interrupt driven control endpoint task
  42. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  43. # Boot Section Size in bytes
  44. # Teensy halfKay 512
  45. # Atmel DFU loader 4096
  46. # LUFA bootloader 4096
  47. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  48. # Build Options
  49. # comment out to disable the options.
  50. #
  51. #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
  52. #MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
  53. #EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  54. CONSOLE_ENABLE = yes # Console for debug(+400)
  55. COMMAND_ENABLE = yes # Commands for debug and configuration
  56. #SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  57. #NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
  58. #
  59. # PS/2 protocol implementations
  60. # USART is recommended if it is available, others are for reference purpose.
  61. # INT implementation will drop simultaneous key strokes.
  62. #
  63. PS2_USE_USART = yes # uses hardware USART engine for PS/2 signal receive(recomened)
  64. #PS2_USE_INT = yes # uses external interrupt for falling edge of PS/2 clock pin
  65. #PS2_USE_BUSYWAIT = yes # uses primitive reference code
  66. #---------------- Programming Options --------------------------
  67. PROGRAM_CMD = teensy_loader_cli -mmcu=$(MCU) -w -v $(TARGET).hex
  68. # Search Path
  69. VPATH += $(TARGET_DIR)
  70. VPATH += $(TMK_DIR)
  71. include $(TMK_DIR)/protocol/lufa.mk
  72. include $(TMK_DIR)/protocol.mk
  73. include $(TMK_DIR)/common.mk
  74. include $(TMK_DIR)/rules.mk