aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
-rw-r--r--keyboards/infinity_ergodox/Makefile1
-rw-r--r--keyboards/infinity_ergodox/infinity_ergodox.c10
3 files changed, 22 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c285dabad..79f9e8b42 100644
--- a/Makefile
+++ b/Makefile
@@ -198,10 +198,20 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
198endif 198endif
199 199
200ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) 200ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
201 OPT_DEFS += -DTAP_DANCE_ENABLE 201 OPT_DEFS += -DTAP_DANCE_ENABLE
202 SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c 202 SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c
203endif 203endif
204 204
205ifeq ($(strip $(SERIAL_LINK_ENABLE)), yes)
206 SERIAL_DIR = $(QUANTUM_DIR)/serial_link
207 SERIAL_PATH = $(QUANTUM_PATH)/serial_link
208 SERIAL_SRC = $(wildcard $(SERIAL_PATH)/protocol/*.c)
209 SERIAL_SRC += $(wildcard $(SERIAL_PATH)/system/*.c)
210 SRC += $(patsubst $(QUANTUM_PATH)/%,%,$(SERIAL_SRC))
211 OPT_DEFS += -DUSE_SERIAL_LINK
212 VAPTH += $(SERIAL_PATH)
213endif
214
205# Optimize size but this may cause error "relocation truncated to fit" 215# Optimize size but this may cause error "relocation truncated to fit"
206#EXTRALDFLAGS = -Wl,--relax 216#EXTRALDFLAGS = -Wl,--relax
207 217
diff --git a/keyboards/infinity_ergodox/Makefile b/keyboards/infinity_ergodox/Makefile
index fb21aae5e..efa32e037 100644
--- a/keyboards/infinity_ergodox/Makefile
+++ b/keyboards/infinity_ergodox/Makefile
@@ -66,6 +66,7 @@ COMMAND_ENABLE ?= yes # Commands for debug and configuration
66SLEEP_LED_ENABLE ?= yes # Breathing sleep LED during USB suspend 66SLEEP_LED_ENABLE ?= yes # Breathing sleep LED during USB suspend
67NKRO_ENABLE ?= yes # USB Nkey Rollover 67NKRO_ENABLE ?= yes # USB Nkey Rollover
68CUSTOM_MATRIX ?= yes # Custom matrix file 68CUSTOM_MATRIX ?= yes # Custom matrix file
69SERIAL_LINK_ENABLE = yes
69 70
70ifndef QUANTUM_DIR 71ifndef QUANTUM_DIR
71 include ../../Makefile 72 include ../../Makefile
diff --git a/keyboards/infinity_ergodox/infinity_ergodox.c b/keyboards/infinity_ergodox/infinity_ergodox.c
index 34aded1a7..85054775e 100644
--- a/keyboards/infinity_ergodox/infinity_ergodox.c
+++ b/keyboards/infinity_ergodox/infinity_ergodox.c
@@ -1 +1,11 @@
1#include "infinity_ergodox.h" 1#include "infinity_ergodox.h"
2#include "ch.h"
3#include "hal.h"
4#include "serial_link/system/serial_link.h"
5
6void init_serial_link_hal(void) {
7 PORTA->PCR[1] = PORTx_PCRn_PE | PORTx_PCRn_PS | PORTx_PCRn_PFE | PORTx_PCRn_MUX(2);
8 PORTA->PCR[2] = PORTx_PCRn_DSE | PORTx_PCRn_SRE | PORTx_PCRn_MUX(2);
9 PORTE->PCR[0] = PORTx_PCRn_PE | PORTx_PCRn_PS | PORTx_PCRn_PFE | PORTx_PCRn_MUX(3);
10 PORTE->PCR[1] = PORTx_PCRn_DSE | PORTx_PCRn_SRE | PORTx_PCRn_MUX(3);
11}