diff options
| -rw-r--r-- | common.mk | 6 | ||||
| -rw-r--r-- | common/command.h | 4 | ||||
| -rw-r--r-- | keyboard/gh60/Makefile.lufa | 1 |
3 files changed, 10 insertions, 1 deletions
| @@ -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 |
| 37 | endif | 36 | endif |
| 38 | 37 | ||
| 38 | ifdef COMMAND_ENABLE | ||
| 39 | SRC += $(COMMON_DIR)/command.c | ||
| 40 | OPT_DEFS += -DCOMMAND_ENABLE | ||
| 41 | endif | ||
| 42 | |||
| 39 | ifdef NKRO_ENABLE | 43 | ifdef NKRO_ENABLE |
| 40 | OPT_DEFS += -DNKRO_ENABLE | 44 | OPT_DEFS += -DNKRO_ENABLE |
| 41 | endif | 45 | endif |
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 | ||
| 21 | bool command_proc(uint8_t code); | 22 | bool 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. */ |
| 23 | bool command_extra(uint8_t code); | 24 | bool 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) | |||
| 103 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 103 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 104 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 104 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 105 | CONSOLE_ENABLE = yes # Console for debug(+400) | 105 | CONSOLE_ENABLE = yes # Console for debug(+400) |
| 106 | COMMAND_ENABLE = yes # Magic command | ||
| 106 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | 107 | SLEEP_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 |
