]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/lfkeyboards/lfk87/rules.mk
Keyboard: Helix serial.c, split_scom.c bug fix and update (#4191)
[qmk_firmware.git] / keyboards / lfkeyboards / lfk87 / rules.mk
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
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
18 # Extra source files for IS3731 lighting
19 SRC = TWIlib.c issi.c lighting.c
20
21 # Processor frequency.
22 F_CPU = 16000000
23
24 # Target architecture (see library "Board Types" documentation).
25 ARCH = AVR8
26
27 # Input clock frequency.
28 F_USB = $(F_CPU)
29
30 # Interrupt driven control endpoint task(+60)
31 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
32
33 LAYOUTS = tkl_ansi tkl_iso