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.8KB

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