aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common_features.mk1
-rw-r--r--tmk_core/common.mk4
-rw-r--r--tmk_core/common/print.h2
3 files changed, 6 insertions, 1 deletions
diff --git a/common_features.mk b/common_features.mk
index f44dfc47d..8f53a82aa 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -213,6 +213,7 @@ endif
213ifeq ($(strip $(TERMINAL_ENABLE)), yes) 213ifeq ($(strip $(TERMINAL_ENABLE)), yes)
214 SRC += $(QUANTUM_DIR)/process_keycode/process_terminal.c 214 SRC += $(QUANTUM_DIR)/process_keycode/process_terminal.c
215 OPT_DEFS += -DTERMINAL_ENABLE 215 OPT_DEFS += -DTERMINAL_ENABLE
216 OPT_DEFS += -DUSER_PRINT
216endif 217endif
217 218
218ifeq ($(strip $(USB_HID_ENABLE)), yes) 219ifeq ($(strip $(USB_HID_ENABLE)), yes)
diff --git a/tmk_core/common.mk b/tmk_core/common.mk
index 3844b13d4..65dcf96f6 100644
--- a/tmk_core/common.mk
+++ b/tmk_core/common.mk
@@ -43,9 +43,11 @@ ifeq ($(PLATFORM),CHIBIOS)
43 TMK_COMMON_DEFS += -DSTM32_EEPROM_ENABLE 43 TMK_COMMON_DEFS += -DSTM32_EEPROM_ENABLE
44 else 44 else
45 TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/eeprom_teensy.c 45 TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/eeprom_teensy.c
46endif 46 endif
47 ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes) 47 ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes)
48 TMK_COMMON_SRC += $(CHIBIOS)/os/various/syscalls.c 48 TMK_COMMON_SRC += $(CHIBIOS)/os/various/syscalls.c
49 else ifeq($(strip $(TERMINAL_ENABLE)), yes)
50 TMK_COMMON_SRC += $(CHIBIOS)/os/various/syscalls.c
49 endif 51 endif
50endif 52endif
51 53
diff --git a/tmk_core/common/print.h b/tmk_core/common/print.h
index d94527657..06c6cbd7f 100644
--- a/tmk_core/common/print.h
+++ b/tmk_core/common/print.h
@@ -73,7 +73,9 @@ void print_set_sendchar(int8_t (*print_sendchar_func)(uint8_t));
73 73
74#elif defined(PROTOCOL_CHIBIOS) /* PROTOCOL_CHIBIOS */ 74#elif defined(PROTOCOL_CHIBIOS) /* PROTOCOL_CHIBIOS */
75 75
76#ifndef TERMINAL_ENABLE
76# include "chibios/printf.h" 77# include "chibios/printf.h"
78#endif
77 79
78# ifdef USER_PRINT /* USER_PRINT */ 80# ifdef USER_PRINT /* USER_PRINT */
79 81