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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Target file name (without extension).
  2. TARGET = ascii_usb
  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. protocol/serial_uart.c
  12. CONFIG_H = config.h
  13. # MCU name, you MUST set this to match the board you are using
  14. # type "make clean" after changing this, so all files will be rebuilt
  15. #MCU = at90usb162 # Teensy 1.0
  16. MCU = atmega32u4 # Teensy 2.0
  17. #MCU = at90usb646 # Teensy++ 1.0
  18. #MCU = at90usb1286 # Teensy++ 2.0
  19. # Processor frequency.
  20. # Normally the first thing your program should do is set the clock prescaler,
  21. # so your program will run at the correct speed. You should also set this
  22. # variable to same clock speed. The _delay_ms() macro uses this, and many
  23. # examples use this variable to calculate timings. Do not add a "UL" here.
  24. F_CPU = 16000000
  25. #
  26. # LUFA specific
  27. #
  28. # Target architecture (see library "Board Types" documentation).
  29. ARCH = AVR8
  30. # Input clock frequency.
  31. # This will define a symbol, F_USB, in all source code files equal to the
  32. # input clock frequency (before any prescaling is performed) in Hz. This value may
  33. # differ from F_CPU if prescaling is used on the latter, and is required as the
  34. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  35. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  36. # at the end, this will be done automatically to create a 32-bit value in your
  37. # source code.
  38. #
  39. # If no clock division is performed on the input clock inside the AVR (via the
  40. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  41. F_USB = $(F_CPU)
  42. # Interrupt driven control endpoint task
  43. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  44. # Build Options
  45. # *Comment out* to disable the options.
  46. #
  47. #MOUSEKEY_ENABLE = yes # Mouse keys
  48. #EXTRAKEY_ENABLE = yes # Audio control and System control
  49. CONSOLE_ENABLE = yes # Console for debug
  50. #NKRO_ENABLE = yes # USB Nkey Rollover
  51. # Boot Section Size in bytes
  52. # Teensy halfKay 512
  53. # Atmel DFU loader 4096
  54. # LUFA bootloader 4096
  55. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  56. # Search Path
  57. VPATH += $(TARGET_DIR)
  58. VPATH += $(TMK_DIR)
  59. include $(TMK_DIR)/protocol/lufa.mk
  60. include $(TMK_DIR)/protocol.mk
  61. include $(TMK_DIR)/common.mk
  62. include $(TMK_DIR)/rules.mk