]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix Terminal feature on ChibiOS
authorDrashna Jaelre <drashna@live.com>
Wed, 31 Oct 2018 01:00:43 +0000 (18:00 -0700)
committerJack Humbert <jack.humb@gmail.com>
Tue, 6 Nov 2018 05:40:02 +0000 (00:40 -0500)
common_features.mk
tmk_core/common.mk
tmk_core/common/print.h

index f44dfc47de1f918ebd74caaeeef808e96717b4f5..8f53a82aaecaabef5b56cd5b6a7b37363742fa63 100644 (file)
@@ -213,6 +213,7 @@ endif
 ifeq ($(strip $(TERMINAL_ENABLE)), yes)
     SRC += $(QUANTUM_DIR)/process_keycode/process_terminal.c
     OPT_DEFS += -DTERMINAL_ENABLE
+    OPT_DEFS += -DUSER_PRINT
 endif
 
 ifeq ($(strip $(USB_HID_ENABLE)), yes)
index 3844b13d48db2f0a6402c5900b05d9ea522011c6..65dcf96f6614781a380ad1747397ff790c1be8c7 100644 (file)
@@ -43,9 +43,11 @@ ifeq ($(PLATFORM),CHIBIOS)
     TMK_COMMON_DEFS += -DSTM32_EEPROM_ENABLE
   else
     TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/eeprom_teensy.c
-endif
+  endif
   ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes)
     TMK_COMMON_SRC += $(CHIBIOS)/os/various/syscalls.c
+  else ifeq($(strip $(TERMINAL_ENABLE)), yes)
+    TMK_COMMON_SRC += $(CHIBIOS)/os/various/syscalls.c
   endif
 endif
 
index d9452765725db83535489b1799f4bfc089672297..06c6cbd7f1664e6a0932da9adbd48381f627409d 100644 (file)
@@ -73,7 +73,9 @@ void print_set_sendchar(int8_t (*print_sendchar_func)(uint8_t));
 
 #elif defined(PROTOCOL_CHIBIOS) /* PROTOCOL_CHIBIOS */
 
+#ifndef TERMINAL_ENABLE
 #  include "chibios/printf.h"
+#endif
 
 #  ifdef USER_PRINT /* USER_PRINT */