rules.mk 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Set the LFK87 hardware version.
  2. #
  3. # RevA - Green PCB. at90usb1286 Only 3 exist
  4. # RevB - We don't talk about RevB
  5. # RevC - Black PCB. at90usb646 First public release
  6. #
  7. # Set to A or C
  8. LFK_REV = C
  9. ifeq ($(LFK_REV), A)
  10. MCU = at90usb1286
  11. OPT_DEFS += -DBOOTLOADER_SIZE=8192
  12. else
  13. MCU = at90usb646
  14. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  15. endif
  16. OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV)
  17. # Processor frequency.
  18. # This will define a symbol, F_CPU, in all source code files equal to the
  19. # processor frequency in Hz. You can then use this symbol in your source code to
  20. # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
  21. # automatically to create a 32-bit value in your source code.
  22. #
  23. # This will be an integer division of F_USB below, as it is sourced by
  24. # F_USB after it has run through any CPU prescalers. Note that this value
  25. # does not *change* the processor frequency - it should merely be updated to
  26. # reflect the processor speed set externally so that the code can use accurate
  27. # software delays.
  28. F_CPU = 16000000
  29. #
  30. # LUFA specific
  31. #
  32. # Target architecture (see library "Board Types" documentation).
  33. ARCH = AVR8
  34. # Input clock frequency.
  35. # This will define a symbol, F_USB, in all source code files equal to the
  36. # input clock frequency (before any prescaling is performed) in Hz. This value may
  37. # differ from F_CPU if prescaling is used on the latter, and is required as the
  38. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  39. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  40. # at the end, this will be done automatically to create a 32-bit value in your
  41. # source code.
  42. #
  43. # If no clock division is performed on the input clock inside the AVR (via the
  44. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  45. F_USB = $(F_CPU)
  46. # Interrupt driven control endpoint task(+60)
  47. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  48. # ifndef QUANTUM_DIR
  49. # include ../../Makefile
  50. # endif
  51. ifeq ($(strip $(ISSI_ENABLE)), yes)
  52. # TMK_COMMON_DEFS += -DISSI_ENABLE
  53. endif