Skip to content

Commit

Permalink
Fix Terminal feature on ChibiOS
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna authored and jackhumbert committed Nov 6, 2018
1 parent ec34b53 commit 40313cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion tmk_core/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions tmk_core/common/print.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 40313cf

Please sign in to comment.