2
0

rules.mk 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # MCU name
  2. # atmega32u4 Teensy2.0
  3. # atemga32u4 TMK Converter rev.1
  4. # atemga32u2 TMK Converter rev.2
  5. MCU = atmega32u4
  6. # Processor frequency.
  7. # This will define a symbol, F_CPU, in all source code files equal to the
  8. # processor frequency in Hz. You can then use this symbol in your source code to
  9. # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
  10. # automatically to create a 32-bit value in your source code.
  11. #
  12. # This will be an integer division of F_USB below, as it is sourced by
  13. # F_USB after it has run through any CPU prescalers. Note that this value
  14. # does not *change* the processor frequency - it should merely be updated to
  15. # reflect the processor speed set externally so that the code can use accurate
  16. # software delays.
  17. #
  18. F_CPU = 16000000
  19. # F_CPU = 8000000
  20. #
  21. # LUFA specific
  22. #
  23. # Target architecture (see library "Board Types" documentation).
  24. ARCH = AVR8
  25. # Input clock frequency.
  26. # This will define a symbol, F_USB, in all source code files equal to the
  27. # input clock frequency (before any prescaling is performed) in Hz. This value may
  28. # differ from F_CPU if prescaling is used on the latter, and is required as the
  29. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  30. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  31. # at the end, this will be done automatically to create a 32-bit value in your
  32. # source code.
  33. #
  34. # If no clock division is performed on the input clock inside the AVR (via the
  35. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  36. F_USB = $(F_CPU)
  37. # Interrupt driven control endpoint task(+60)
  38. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  39. # Bootloader
  40. # This definition is optional, and if your keyboard supports multiple bootloaders of
  41. # different sizes, comment this out, and the correct address will be loaded
  42. # automatically (+60). See bootloader.mk for all options.
  43. BOOTLOADER = caterina
  44. # Boot Section Size in *bytes*
  45. # Teensy halfKay 512
  46. # Teensy++ halfKay 1024
  47. # Atmel DFU loader 4096 for TMK Converter rev.1/rev.2
  48. # LUFA bootloader 4096
  49. # USBaspLoader 2048
  50. # Build Options
  51. # comment out to disable the options.
  52. #
  53. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
  54. MOUSEKEY_ENABLE = no # Mouse keys(+4700)
  55. CONSOLE_ENABLE = no # Console for debug(+400)
  56. COMMAND_ENABLE = no # Commands for debug and configuration
  57. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  58. NKRO_ENABLE = no # USB Nkey Rollover - not yet supported in LUFA
  59. EXTRAKEY_ENABLE = yes
  60. USB_HID_ENABLE = yes
  61. BACKLIGHT_ENABLE = no
  62. #BLUETOOTH = AdafruitBLE # For Adafruit Feather 32U4 BLE support, uncomment this line
  63. CUSTOM_MATRIX = yes
  64. SRC = matrix.c adb.c led.c