Browse Source

Add COMMAND_ENABLE build option

tags/v1.9
tmk 11 years ago
parent
commit
1687041267
3 changed files with 10 additions and 1 deletions
  1. 5
    1
      common.mk
  2. 4
    0
      common/command.h
  3. 1
    0
      keyboard/gh60/Makefile.lufa

+ 5
- 1
common.mk View File

$(COMMON_DIR)/action_macro.c \ $(COMMON_DIR)/action_macro.c \
$(COMMON_DIR)/layer_switch.c \ $(COMMON_DIR)/layer_switch.c \
$(COMMON_DIR)/keymap.c \ $(COMMON_DIR)/keymap.c \
$(COMMON_DIR)/command.c \
$(COMMON_DIR)/timer.c \ $(COMMON_DIR)/timer.c \
$(COMMON_DIR)/print.c \ $(COMMON_DIR)/print.c \
$(COMMON_DIR)/debug.c \ $(COMMON_DIR)/debug.c \
OPT_DEFS += -DNO_DEBUG OPT_DEFS += -DNO_DEBUG
endif endif


ifdef COMMAND_ENABLE
SRC += $(COMMON_DIR)/command.c
OPT_DEFS += -DCOMMAND_ENABLE
endif

ifdef NKRO_ENABLE ifdef NKRO_ENABLE
OPT_DEFS += -DNKRO_ENABLE OPT_DEFS += -DNKRO_ENABLE
endif endif

+ 4
- 0
common/command.h View File

#ifndef COMMAND_H #ifndef COMMAND_H
#define COMMAND #define COMMAND


#ifdef COMMAND_ENABLE
bool command_proc(uint8_t code); bool command_proc(uint8_t code);
/* This allows to extend commands. Return 0 when command is not processed. */ /* This allows to extend commands. Return 0 when command is not processed. */
bool command_extra(uint8_t code); bool command_extra(uint8_t code);
#else
#define command_proc(code) false
#endif


#endif #endif

+ 1
- 0
keyboard/gh60/Makefile.lufa View File

MOUSEKEY_ENABLE = yes # Mouse keys(+4700) MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450) EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = yes # Console for debug(+400) CONSOLE_ENABLE = yes # Console for debug(+400)
COMMAND_ENABLE = yes # Magic command
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
#NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA #NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
#PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support #PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support

Loading…
Cancel
Save