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.tmk_rev1 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. 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_default.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 = atmega32u2 # TMK converter rev2
  21. MCU = atmega32u4 # TMK converter rev1
  22. # Processor frequency.
  23. # Normally the first thing your program should do is set the clock prescaler,
  24. # so your program will run at the correct speed. You should also set this
  25. # variable to same clock speed. The _delay_ms() macro uses this, and many
  26. # examples use this variable to calculate timings. Do not add a "UL" here.
  27. F_CPU = 16000000
  28. #
  29. # LUFA specific
  30. #
  31. # Target architecture (see library "Board Types" documentation).
  32. ARCH = AVR8
  33. # Input clock frequency.
  34. # This will define a symbol, F_USB, in all source code files equal to the
  35. # input clock frequency (before any prescaling is performed) in Hz. This value may
  36. # differ from F_CPU if prescaling is used on the latter, and is required as the
  37. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  38. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  39. # at the end, this will be done automatically to create a 32-bit value in your
  40. # source code.
  41. #
  42. # If no clock division is performed on the input clock inside the AVR (via the
  43. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  44. F_USB = $(F_CPU)
  45. # Interrupt driven control endpoint task
  46. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  47. # Boot Section Size in bytes
  48. # Teensy halfKay 512
  49. # Atmel DFU loader 4096
  50. # LUFA bootloader 4096
  51. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  52. # Build Options
  53. # *Comment out* to disable the options.
  54. #
  55. #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
  56. MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
  57. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  58. CONSOLE_ENABLE = yes # Console for debug(+400)
  59. COMMAND_ENABLE = yes # Commands for debug and configuration
  60. #SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  61. #NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
  62. #KEYMAP_SECTION_ENABLE = yes # fixed address keymap for keymap editor
  63. #---------------- Programming Options --------------------------
  64. PROGRAM_CMD = teensy_loader_cli -mmcu=$(MCU) -w -v $(TARGET).hex
  65. # Search Path
  66. VPATH += $(TARGET_DIR)
  67. VPATH += $(TMK_DIR)
  68. include $(TMK_DIR)/protocol/lufa.mk
  69. include $(TMK_DIR)/protocol.mk
  70. include $(TMK_DIR)/common.mk
  71. include $(TMK_DIR)/rules.mk