diff options
| -rw-r--r-- | Makefile | 12 | ||||
| -rw-r--r-- | keyboards/infinity_ergodox/Makefile | 1 | ||||
| -rw-r--r-- | keyboards/infinity_ergodox/infinity_ergodox.c | 10 |
3 files changed, 22 insertions, 1 deletions
| @@ -198,10 +198,20 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | |||
| 198 | endif | 198 | endif |
| 199 | 199 | ||
| 200 | ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) | 200 | ifeq ($(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 |
| 203 | endif | 203 | endif |
| 204 | 204 | ||
| 205 | ifeq ($(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) | ||
| 213 | endif | ||
| 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 | |||
| 66 | SLEEP_LED_ENABLE ?= yes # Breathing sleep LED during USB suspend | 66 | SLEEP_LED_ENABLE ?= yes # Breathing sleep LED during USB suspend |
| 67 | NKRO_ENABLE ?= yes # USB Nkey Rollover | 67 | NKRO_ENABLE ?= yes # USB Nkey Rollover |
| 68 | CUSTOM_MATRIX ?= yes # Custom matrix file | 68 | CUSTOM_MATRIX ?= yes # Custom matrix file |
| 69 | SERIAL_LINK_ENABLE = yes | ||
| 69 | 70 | ||
| 70 | ifndef QUANTUM_DIR | 71 | ifndef 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 | |||
| 6 | void 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 | } | ||
