Keyboard firmwares for Atmel AVR and Cortex-M
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.

Makefile.teensy 2.9KB

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