diff options
Diffstat (limited to 'keyboards/gmmk')
19 files changed, 95 insertions, 138 deletions
diff --git a/keyboards/gmmk/gmmk2/p65/ansi/info.json b/keyboards/gmmk/gmmk2/p65/ansi/keyboard.json index 2d2230a3b9..a5c4c92552 100644 --- a/keyboards/gmmk/gmmk2/p65/ansi/info.json +++ b/keyboards/gmmk/gmmk2/p65/ansi/keyboard.json @@ -11,6 +11,15 @@ "qmk": { "tap_keycode_delay": 10 }, + "features": { + "bootmagic": true, + "command": false, + "console": false, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true + }, "matrix_pins": { "cols": ["A0", "A1", "A2", "A3", "A4", "A8", "A9", "A10"], "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8"] diff --git a/keyboards/gmmk/gmmk2/p65/ansi/rules.mk b/keyboards/gmmk/gmmk2/p65/ansi/rules.mk deleted file mode 100644 index 2d2e9895fd..0000000000 --- a/keyboards/gmmk/gmmk2/p65/ansi/rules.mk +++ /dev/null @@ -1,13 +0,0 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite. -MOUSEKEY_ENABLE = yes # Mouse keys. -EXTRAKEY_ENABLE = yes # Audio control and System control. -CONSOLE_ENABLE = no # Console for debug. -COMMAND_ENABLE = no # Commands for debug and configuration. -NKRO_ENABLE = yes # Enable NKRO Rollover. -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality. -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow. -AUDIO_ENABLE = no # Audio output. -RGB_MATRIX_ENABLE = yes # Enable RGB matrix effects. diff --git a/keyboards/gmmk/gmmk2/p65/iso/info.json b/keyboards/gmmk/gmmk2/p65/iso/keyboard.json index aa31b50f61..a4576c8c7f 100644 --- a/keyboards/gmmk/gmmk2/p65/iso/info.json +++ b/keyboards/gmmk/gmmk2/p65/iso/keyboard.json @@ -11,6 +11,15 @@ "qmk": { "tap_keycode_delay": 10 }, + "features": { + "bootmagic": true, + "command": false, + "console": false, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true + }, "matrix_pins": { "cols": ["A0", "A1", "A2", "A3", "A4", "A8", "A9", "A10"], "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8"] diff --git a/keyboards/gmmk/gmmk2/p65/iso/rules.mk b/keyboards/gmmk/gmmk2/p65/iso/rules.mk deleted file mode 100644 index 2d2e9895fd..0000000000 --- a/keyboards/gmmk/gmmk2/p65/iso/rules.mk +++ /dev/null @@ -1,13 +0,0 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite. -MOUSEKEY_ENABLE = yes # Mouse keys. -EXTRAKEY_ENABLE = yes # Audio control and System control. -CONSOLE_ENABLE = no # Console for debug. -COMMAND_ENABLE = no # Commands for debug and configuration. -NKRO_ENABLE = yes # Enable NKRO Rollover. -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality. -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow. -AUDIO_ENABLE = no # Audio output. -RGB_MATRIX_ENABLE = yes # Enable RGB matrix effects. diff --git a/keyboards/gmmk/gmmk2/p96/ansi/info.json b/keyboards/gmmk/gmmk2/p96/ansi/keyboard.json index d7e0e38ceb..8fd81ba1a0 100644 --- a/keyboards/gmmk/gmmk2/p96/ansi/info.json +++ b/keyboards/gmmk/gmmk2/p96/ansi/keyboard.json @@ -11,6 +11,15 @@ "qmk": { "tap_keycode_delay": 10 }, + "features": { + "bootmagic": true, + "command": false, + "console": false, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true + }, "matrix_pins": { "cols": ["A0", "A1", "A2", "A3", "A4", "A8", "A9", "A10"], "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12", "B13"] diff --git a/keyboards/gmmk/gmmk2/p96/ansi/rules.mk b/keyboards/gmmk/gmmk2/p96/ansi/rules.mk deleted file mode 100644 index 2d2e9895fd..0000000000 --- a/keyboards/gmmk/gmmk2/p96/ansi/rules.mk +++ /dev/null @@ -1,13 +0,0 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite. -MOUSEKEY_ENABLE = yes # Mouse keys. -EXTRAKEY_ENABLE = yes # Audio control and System control. -CONSOLE_ENABLE = no # Console for debug. -COMMAND_ENABLE = no # Commands for debug and configuration. -NKRO_ENABLE = yes # Enable NKRO Rollover. -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality. -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow. -AUDIO_ENABLE = no # Audio output. -RGB_MATRIX_ENABLE = yes # Enable RGB matrix effects. diff --git a/keyboards/gmmk/gmmk2/p96/iso/info.json b/keyboards/gmmk/gmmk2/p96/iso/keyboard.json index c5079a22dd..040b6f9c6f 100644 --- a/keyboards/gmmk/gmmk2/p96/iso/info.json +++ b/keyboards/gmmk/gmmk2/p96/iso/keyboard.json @@ -11,6 +11,15 @@ "qmk": { "tap_keycode_delay": 10 }, + "features": { + "bootmagic": true, + "command": false, + "console": false, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true + }, "matrix_pins": { "cols": ["A0", "A1", "A2", "A3", "A4", "A8", "A9", "A10"], "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12", "B13"] diff --git a/keyboards/gmmk/gmmk2/p96/iso/rules.mk b/keyboards/gmmk/gmmk2/p96/iso/rules.mk deleted file mode 100644 index 2d2e9895fd..0000000000 --- a/keyboards/gmmk/gmmk2/p96/iso/rules.mk +++ /dev/null @@ -1,13 +0,0 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite. -MOUSEKEY_ENABLE = yes # Mouse keys. -EXTRAKEY_ENABLE = yes # Audio control and System control. -CONSOLE_ENABLE = no # Console for debug. -COMMAND_ENABLE = no # Commands for debug and configuration. -NKRO_ENABLE = yes # Enable NKRO Rollover. -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality. -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow. -AUDIO_ENABLE = no # Audio output. -RGB_MATRIX_ENABLE = yes # Enable RGB matrix effects. diff --git a/keyboards/gmmk/numpad/info.json b/keyboards/gmmk/numpad/keyboard.json index 63ae544ad3..70e2d3e679 100644 --- a/keyboards/gmmk/numpad/info.json +++ b/keyboards/gmmk/numpad/keyboard.json @@ -6,7 +6,10 @@ "usb": { "vid": "0x320F", "pid": "0x5088", - "device_version": "0.0.1" + "device_version": "0.0.1", + "shared_endpoint": { + "keyboard": true + } }, "eeprom": { "driver": "wear_leveling", @@ -70,6 +73,18 @@ }, "processor": "WB32F3G71", "bootloader": "wb32-dfu", + "features": { + "bootmagic": true, + "mousekey": true, + "extrakey": true, + "nkro": true, + "rgb_matrix": true, + "encoder": true, + "midi": true + }, + "build": { + "lto": true + }, "diode_direction": "ROW2COL", "matrix_pins": { "rows": ["A3", "A4", "A5", "A6", "A7"], diff --git a/keyboards/gmmk/numpad/matrix.c b/keyboards/gmmk/numpad/matrix.c index 99adb38f18..68d4ab6524 100644 --- a/keyboards/gmmk/numpad/matrix.c +++ b/keyboards/gmmk/numpad/matrix.c @@ -4,15 +4,12 @@ /* * scan matrix */ -#include <stdint.h> -#include <stdbool.h> +#include "matrix.h" +#include <string.h> +#include "atomic_util.h" #include "wait.h" #include "print.h" #include "debug.h" -#include "util.h" -#include "matrix.h" -#include "debounce.h" -#include "quantum.h" /* matrix state(1:on, 0:off) */ extern matrix_row_t matrix[MATRIX_ROWS]; // debounced values diff --git a/keyboards/gmmk/numpad/rules.mk b/keyboards/gmmk/numpad/rules.mk index d289eb81a4..752b0ce9d0 100644 --- a/keyboards/gmmk/numpad/rules.mk +++ b/keyboards/gmmk/numpad/rules.mk @@ -1,23 +1,3 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = yes # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -ENCODER_ENABLE = yes -KEYBOARD_SHARED_EP = yes -MIDI_ENABLE = yes - -RGB_MATRIX_ENABLE = yes - -LTO_ENABLE = yes - ANALOG_DRIVER_REQUIRED = yes SRC += matrix.c diff --git a/keyboards/gmmk/pro/rev1/ansi/info.json b/keyboards/gmmk/pro/rev1/ansi/keyboard.json index 533a379656..867f7e1d02 100644 --- a/keyboards/gmmk/pro/rev1/ansi/info.json +++ b/keyboards/gmmk/pro/rev1/ansi/keyboard.json @@ -8,6 +8,16 @@ "pid": "0x5044", "device_version": "0.0.1" }, + "features": { + "bootmagic": true, + "command": false, + "console": false, + "encoder": true, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true + }, "matrix_pins": { "cols": ["A0", "A1", "A2", "A3", "A4", "A8", "A9", "A10"], "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10"] diff --git a/keyboards/gmmk/pro/rev1/ansi/rules.mk b/keyboards/gmmk/pro/rev1/ansi/rules.mk deleted file mode 100644 index 6d23fe350a..0000000000 --- a/keyboards/gmmk/pro/rev1/ansi/rules.mk +++ /dev/null @@ -1,14 +0,0 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = yes # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -ENCODER_ENABLE = yes -RGB_MATRIX_ENABLE = yes diff --git a/keyboards/gmmk/pro/rev1/iso/info.json b/keyboards/gmmk/pro/rev1/iso/keyboard.json index 90f66171aa..6eabec96fe 100644 --- a/keyboards/gmmk/pro/rev1/iso/info.json +++ b/keyboards/gmmk/pro/rev1/iso/keyboard.json @@ -8,6 +8,16 @@ "pid": "0x5044", "device_version": "0.0.1" }, + "features": { + "bootmagic": true, + "command": false, + "console": false, + "encoder": true, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true + }, "matrix_pins": { "cols": ["A0", "A1", "A2", "A3", "A4", "A8", "A9", "A10"], "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10"] diff --git a/keyboards/gmmk/pro/rev1/iso/rules.mk b/keyboards/gmmk/pro/rev1/iso/rules.mk deleted file mode 100644 index 6d23fe350a..0000000000 --- a/keyboards/gmmk/pro/rev1/iso/rules.mk +++ /dev/null @@ -1,14 +0,0 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = yes # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -ENCODER_ENABLE = yes -RGB_MATRIX_ENABLE = yes diff --git a/keyboards/gmmk/pro/rev2/ansi/info.json b/keyboards/gmmk/pro/rev2/ansi/keyboard.json index 5615044316..21bc7df7fb 100644 --- a/keyboards/gmmk/pro/rev2/ansi/info.json +++ b/keyboards/gmmk/pro/rev2/ansi/keyboard.json @@ -8,6 +8,16 @@ "pid": "0x5044", "device_version": "0.0.2" }, + "features": { + "bootmagic": true, + "command": false, + "console": false, + "encoder": true, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true + }, "matrix_pins": { "cols": ["A0", "A1", "A2", "A3", "A4", "A8", "A9", "A10"], "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10"] diff --git a/keyboards/gmmk/pro/rev2/ansi/rules.mk b/keyboards/gmmk/pro/rev2/ansi/rules.mk deleted file mode 100644 index 6d23fe350a..0000000000 --- a/keyboards/gmmk/pro/rev2/ansi/rules.mk +++ /dev/null @@ -1,14 +0,0 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = yes # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -ENCODER_ENABLE = yes -RGB_MATRIX_ENABLE = yes diff --git a/keyboards/gmmk/pro/rev2/iso/info.json b/keyboards/gmmk/pro/rev2/iso/keyboard.json index 3b7c0ca544..83d1fd3028 100644 --- a/keyboards/gmmk/pro/rev2/iso/info.json +++ b/keyboards/gmmk/pro/rev2/iso/keyboard.json @@ -8,6 +8,16 @@ "pid": "0x5044", "device_version": "0.0.2" }, + "features": { + "bootmagic": true, + "command": false, + "console": false, + "encoder": true, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true + }, "matrix_pins": { "cols": ["A0", "A1", "A2", "A3", "A4", "A8", "A9", "A10"], "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10"] diff --git a/keyboards/gmmk/pro/rev2/iso/rules.mk b/keyboards/gmmk/pro/rev2/iso/rules.mk deleted file mode 100644 index 46eda64be7..0000000000 --- a/keyboards/gmmk/pro/rev2/iso/rules.mk +++ /dev/null @@ -1,17 +0,0 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE -SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend -# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work -NKRO_ENABLE = yes # USB Nkey Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -ENCODER_ENABLE = yes -RGB_MATRIX_ENABLE = yes |