浏览代码

Add bootmagic and magic command support for ghpad

led_matrix
Kai Ryu 10 年前
父节点
当前提交
ef8d032029
共有 2 个文件被更改,包括 12 次插入3 次删除
  1. 6
    1
      keyboard/ghpad/Makefile
  2. 6
    2
      keyboard/ghpad/config.h

+ 6
- 1
keyboard/ghpad/Makefile 查看文件

# USBaspLoader 2048 # USBaspLoader 2048
OPT_DEFS += -DBOOTLOADER_SIZE=4096 OPT_DEFS += -DBOOTLOADER_SIZE=4096


# Additional definitions from command line
ifdef DEFS
OPT_DEFS += $(foreach DEF,$(DEFS),-D$(DEF))
endif



# Build Options # Build Options
# comment out to disable the options. # comment out to disable the options.
CONSOLE_ENABLE = yes # Console for debug(+400) CONSOLE_ENABLE = yes # Console for debug(+400)
COMMAND_ENABLE = yes # Commands for debug and configuration COMMAND_ENABLE = yes # Commands for debug and configuration
#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
#PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support #PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
KEYMAP_EX_ENABLE = yes # External keymap in eeprom KEYMAP_EX_ENABLE = yes # External keymap in eeprom

+ 6
- 2
keyboard/ghpad/config.h 查看文件

#define LOCKING_RESYNC_ENABLE #define LOCKING_RESYNC_ENABLE


/* key combination for command */ /* key combination for command */
#ifndef __ASSEMBLER__
#include "matrix.h"
#define IS_COMMAND() ( \ #define IS_COMMAND() ( \
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
matrix_is_on(0, 0) && matrix_is_on(0, MATRIX_COLS - 1) \
) )
#endif



/* boot magic key */
#define BOOTMAGIC_KEY_SALT KC_FN0


/* /*
* Feature disable options * Feature disable options