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.

преди 12 години
преди 12 години
преди 9 години
преди 12 години
преди 12 години
преди 12 години
преди 12 години
преди 12 години
преди 12 години
преди 12 години
преди 11 години
преди 12 години
преди 11 години
преди 12 години
преди 12 години
преди 12 години
преди 12 години
преди 12 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #
  2. # Makefile for PJRC Teensy
  3. #
  4. # Target file name (without extension).
  5. TARGET = x68k_usb
  6. # Directory common source filess exist
  7. TMK_DIR = ../../tmk_core
  8. # Directory keyboard dependent files exist
  9. TARGET_DIR = .
  10. # keyboard dependent files
  11. SRC = keymap.c \
  12. matrix.c \
  13. led.c \
  14. protocol/serial_uart.c
  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. MCU = atmega32u2 # 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. #
  30. # LUFA specific
  31. #
  32. # Target architecture (see library "Board Types" documentation).
  33. ARCH = AVR8
  34. # Input clock frequency.
  35. # This will define a symbol, F_USB, in all source code files equal to the
  36. # input clock frequency (before any prescaling is performed) in Hz. This value may
  37. # differ from F_CPU if prescaling is used on the latter, and is required as the
  38. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  39. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  40. # at the end, this will be done automatically to create a 32-bit value in your
  41. # source code.
  42. #
  43. # If no clock division is performed on the input clock inside the AVR (via the
  44. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  45. F_USB = $(F_CPU)
  46. # Interrupt driven control endpoint task(+60)
  47. #OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  48. # Boot Section Size in bytes
  49. # Teensy halfKay 512
  50. # Atmel DFU loader 4096
  51. # LUFA bootloader 4096
  52. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  53. # Build Options
  54. # *Comment out* to disable the options.
  55. #
  56. BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
  57. MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
  58. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  59. CONSOLE_ENABLE = yes # Console for debug(+400)
  60. COMMAND_ENABLE = yes # Commands for debug and configuration
  61. #SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  62. #NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
  63. #---------------- Programming Options --------------------------
  64. AVRDUDE = avrdude
  65. # Type: avrdude -c ? to get a full listing.
  66. AVRDUDE_PROGRAMMER = avr109
  67. AVRDUDE_PORT = /dev/ttyACM0
  68. AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
  69. #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
  70. # Uncomment the following if you want avrdude's erase cycle counter.
  71. # Note that this counter needs to be initialized first using -Yn,
  72. # see avrdude manual.
  73. #AVRDUDE_ERASE_COUNTER = -y
  74. # Uncomment the following if you do /not/ wish a verification to be
  75. # performed after programming the device.
  76. #AVRDUDE_NO_VERIFY = -V
  77. # Increase verbosity level. Please use this when submitting bug
  78. # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
  79. # to submit bug reports.
  80. #AVRDUDE_VERBOSE = -v -v
  81. AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
  82. #AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER)
  83. AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
  84. AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
  85. AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
  86. PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
  87. # Search Path
  88. VPATH += $(TARGET_DIR)
  89. VPATH += $(TMK_DIR)
  90. include $(TMK_DIR)/protocol.mk
  91. include $(TMK_DIR)/protocol/lufa.mk
  92. include $(TMK_DIR)/common.mk
  93. include $(TMK_DIR)/rules.mk