rules.mk 678 B

12345678910111213141516171819202122232425262728293031
  1. # Set the LFK87 hardware version.
  2. #
  3. # A - Green PCB. at90usb1286 Only 3 exist
  4. # B - We don't talk about RevB
  5. # C-D - Black PCB. at90usb646 First public release
  6. #
  7. LFK_REV = C
  8. ifeq ($(LFK_REV), A)
  9. MCU = at90usb1286
  10. OPT_DEFS += -DBOOTLOADER_SIZE=8192
  11. else
  12. MCU = at90usb646
  13. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  14. endif
  15. OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV)
  16. # Extra source files for IS3731 lighting
  17. SRC = TWIlib.c issi.c lighting.c
  18. # Processor frequency.
  19. F_CPU = 16000000
  20. # Target architecture (see library "Board Types" documentation).
  21. ARCH = AVR8
  22. # Input clock frequency.
  23. F_USB = $(F_CPU)
  24. # Interrupt driven control endpoint task(+60)
  25. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT