aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.mk6
-rw-r--r--common/command.h4
-rw-r--r--keyboard/gh60/Makefile.lufa1
3 files changed, 10 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index 2ce4e32da..e4c9fb269 100644
--- a/common.mk
+++ b/common.mk
@@ -5,7 +5,6 @@ SRC += $(COMMON_DIR)/host.c \
5 $(COMMON_DIR)/action_macro.c \ 5 $(COMMON_DIR)/action_macro.c \
6 $(COMMON_DIR)/layer_switch.c \ 6 $(COMMON_DIR)/layer_switch.c \
7 $(COMMON_DIR)/keymap.c \ 7 $(COMMON_DIR)/keymap.c \
8 $(COMMON_DIR)/command.c \
9 $(COMMON_DIR)/timer.c \ 8 $(COMMON_DIR)/timer.c \
10 $(COMMON_DIR)/print.c \ 9 $(COMMON_DIR)/print.c \
11 $(COMMON_DIR)/debug.c \ 10 $(COMMON_DIR)/debug.c \
@@ -36,6 +35,11 @@ else
36 OPT_DEFS += -DNO_DEBUG 35 OPT_DEFS += -DNO_DEBUG
37endif 36endif
38 37
38ifdef COMMAND_ENABLE
39 SRC += $(COMMON_DIR)/command.c
40 OPT_DEFS += -DCOMMAND_ENABLE
41endif
42
39ifdef NKRO_ENABLE 43ifdef NKRO_ENABLE
40 OPT_DEFS += -DNKRO_ENABLE 44 OPT_DEFS += -DNKRO_ENABLE
41endif 45endif
diff --git a/common/command.h b/common/command.h
index dafd4d0f3..be739fafe 100644
--- a/common/command.h
+++ b/common/command.h
@@ -18,8 +18,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18#ifndef COMMAND_H 18#ifndef COMMAND_H
19#define COMMAND 19#define COMMAND
20 20
21#ifdef COMMAND_ENABLE
21bool command_proc(uint8_t code); 22bool command_proc(uint8_t code);
22/* This allows to extend commands. Return 0 when command is not processed. */ 23/* This allows to extend commands. Return 0 when command is not processed. */
23bool command_extra(uint8_t code); 24bool command_extra(uint8_t code);
25#else
26#define command_proc(code) false
27#endif
24 28
25#endif 29#endif
diff --git a/keyboard/gh60/Makefile.lufa b/keyboard/gh60/Makefile.lufa
index 8042ff3f4..f740dea84 100644
--- a/keyboard/gh60/Makefile.lufa
+++ b/keyboard/gh60/Makefile.lufa
@@ -103,6 +103,7 @@ BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
103MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 103MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
104EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 104EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
105CONSOLE_ENABLE = yes # Console for debug(+400) 105CONSOLE_ENABLE = yes # Console for debug(+400)
106COMMAND_ENABLE = yes # Magic command
106SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend 107SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
107#NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA 108#NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
108#PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support 109#PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support