rules.mk 930 B

12345678910111213141516171819202122232425262728293031323334
  1. # Set the LFK78 hardware version.
  2. #
  3. # B - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight
  4. # C-H - at90usb1286, no audio, ISSI device 0 is backlight, 4 is RGB
  5. # J - at90usb646, C6 audio, ISSI device 0 is backlight, 4 is RGB
  6. LFK_REV = J
  7. ifeq ($(LFK_REV), B)
  8. MCU = atmega32u4
  9. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  10. else ifeq ($(LFK_REV), J)
  11. MCU = at90usb646
  12. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  13. else
  14. MCU = at90usb1286
  15. OPT_DEFS += -DBOOTLOADER_SIZE=8192
  16. endif
  17. OPT_DEFS += -DLFK_REV_$(LFK_REV)
  18. OPT_DEFS += -DLFK_REV_STRING=\"Rev$(LFK_REV)\"
  19. # Extra source files for IS3731 lighting
  20. SRC = TWIlib.c issi.c lighting.c
  21. # Processor frequency.
  22. F_CPU = 16000000
  23. # Target architecture (see library "Board Types" documentation).
  24. ARCH = AVR8
  25. # Input clock frequency.
  26. F_USB = $(F_CPU)
  27. # Interrupt driven control endpoint task(+60)
  28. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT