summaryrefslogtreecommitdiff
path: root/keyboards/moon/rules.mk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2019-08-22 15:27:18 +0100
committerGitHub <noreply@github.com>2019-08-22 15:27:18 +0100
commit1c805b3d008a98a5a15112b0655ba14b42dbae67 (patch)
tree56eb8ff23486c276b9126a86479a51e3db91577a /keyboards/moon/rules.mk
parenta20e6aa0224ff243e6dc80259c9de868c4acc9ce (diff)
Relocate pca9555 driver to core (#6563)
* Move pca9555 files to central location * Get pca9555 boards compiling * Slight alignment of rules.mk
Diffstat (limited to 'keyboards/moon/rules.mk')
-rw-r--r--keyboards/moon/rules.mk16
1 files changed, 9 insertions, 7 deletions
diff --git a/keyboards/moon/rules.mk b/keyboards/moon/rules.mk
index 699fc33957..c8b39e8b7a 100644
--- a/keyboards/moon/rules.mk
+++ b/keyboards/moon/rules.mk
@@ -1,6 +1,3 @@
-# Project specific files
-SRC += i2c_master.c pca9555.c matrix.c
-
# MCU name
MCU = atmega32u4
@@ -50,10 +47,6 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
# atmega32a bootloadHID
BOOTLOADER = atmel-dfu
-
-# Supported layouts
-LAYOUTS = tkl_ansi tkl_iso
-
# Build Options
# change yes to no to disable
#
@@ -74,4 +67,13 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
AUDIO_ENABLE = no # Audio output on port C6
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
+
+# custom matrix setup
CUSTOM_MATRIX = yes
+
+VPATH += drivers/gpio
+SRC += pca9555.c matrix.c
+QUANTUM_LIB_SRC += i2c_master.c
+
+# Supported layouts
+LAYOUTS = tkl_ansi tkl_iso