diff options
author | Scott Wilson <scott.t.wilson@gmail.com> | 2017-12-03 10:32:07 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-12-09 00:01:58 -0500 |
commit | c51dfef958bce4a792b66db337d5c7cdf0956fc4 (patch) | |
tree | b51a3d2a95c5ba47416e2964bc98c9ad329cf168 /keyboards/lfkeyboards/lfk87/rules.mk | |
parent | 8b1862330a960b0413046ed6fdba78d2570e7988 (diff) | |
download | firmware-c51dfef958bce4a792b66db337d5c7cdf0956fc4.tar.gz firmware-c51dfef958bce4a792b66db337d5c7cdf0956fc4.tar.bz2 firmware-c51dfef958bce4a792b66db337d5c7cdf0956fc4.zip |
Add support for LFKeyboard products: LFK78, LFK87 and SMK65
Diffstat (limited to 'keyboards/lfkeyboards/lfk87/rules.mk')
-rw-r--r-- | keyboards/lfkeyboards/lfk87/rules.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/keyboards/lfkeyboards/lfk87/rules.mk b/keyboards/lfkeyboards/lfk87/rules.mk new file mode 100644 index 000000000..ec550d275 --- /dev/null +++ b/keyboards/lfkeyboards/lfk87/rules.mk @@ -0,0 +1,31 @@ +# Set the LFK87 hardware version. +# +# A - Green PCB. at90usb1286 Only 3 exist +# B - We don't talk about RevB +# C-D - Black PCB. at90usb646 First public release +# +LFK_REV = C + +ifeq ($(LFK_REV), A) + MCU = at90usb1286 + OPT_DEFS += -DBOOTLOADER_SIZE=8192 +else + MCU = at90usb646 + OPT_DEFS += -DBOOTLOADER_SIZE=4096 +endif +OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV) + +# Extra source files for IS3731 lighting +SRC = TWIlib.c issi.c lighting.c + +# Processor frequency. +F_CPU = 16000000 + +# Target architecture (see library "Board Types" documentation). +ARCH = AVR8 + +# Input clock frequency. +F_USB = $(F_CPU) + +# Interrupt driven control endpoint task(+60) +OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT |