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

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