]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/lfkeyboards/lfk78/rules.mk
Modernize clueboard, add 66_ansi and 66_iso layouts (#2377)
[qmk_firmware.git] / keyboards / lfkeyboards / lfk78 / rules.mk
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
8 ifeq ($(LFK_REV), B)
9     MCU = atmega32u4
10     OPT_DEFS += -DBOOTLOADER_SIZE=4096
11 else ifeq ($(LFK_REV), J)
12     MCU = at90usb646
13     OPT_DEFS += -DBOOTLOADER_SIZE=4096
14 else
15     MCU = at90usb1286
16     OPT_DEFS += -DBOOTLOADER_SIZE=8192
17 endif
18 OPT_DEFS += -DLFK_REV_$(LFK_REV)
19 OPT_DEFS += -DLFK_REV_STRING=\"Rev$(LFK_REV)\"
20
21 # Extra source files for IS3731 lighting
22 SRC = TWIlib.c issi.c lighting.c
23
24 # Processor frequency.
25 F_CPU = 16000000
26
27 # Target architecture (see library "Board Types" documentation).
28 ARCH = AVR8
29
30 # Input clock frequency.
31 F_USB = $(F_CPU)
32
33 # Interrupt driven control endpoint task(+60)
34 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT